Main
Named Fiddles
Skia Fiddle
Skia Version:
bd99c0
void draw(SkCanvas* canvas) { const int w = 4; const int h = 4; uint16_t storage[w * h]; SkPixmap pixmap(SkImageInfo::Make(w, h, kARGB_4444_SkColorType, kPremul_SkAlphaType), storage, w * sizeof(storage[0])); SkDebugf("pixmap.addr16() %c= storage\n", pixmap.addr16() == storage ? '=' : '!'); }
Skia API Documentation