/** * Return a new SkMallocPixelRef with the provided pixel storage and * rowBytes. On destruction, ReleaseProc will be called. * * If ReleaseProc is NULL, the pixels will never be released. This * can be useful if the pixels were stack allocated. However, such an * SkMallocPixelRef must not live beyond its pixels (e.g. by copying * an SkBitmap pointing to it, or drawing to an SkPicture). * * Returns NULL on failure.
*/
sk_sp<SkPixelRef> SkMakePixelRefWithProc(int w, int h, size_t rowBytes, void* addr, void (*releaseProc)(void* addr, void* ctx), void* ctx);
Die Informationen auf dieser Webseite wurden
nach bestem Wissen sorgfältig zusammengestellt. Es wird jedoch weder Vollständigkeit, noch Richtigkeit,
noch Qualität der bereit gestellten Informationen zugesichert.
Bemerkung:
Die farbliche Syntaxdarstellung und die Messung sind noch experimentell.