4REG_FIDDLE(Bitmap_tryAllocPixels_3, 256, 50,
false, 0) {
6 uint8_t set1[5] = { 0xCA, 0xDA, 0xCA, 0xC9, 0xA3 };
11 if (
bitmap.tryAllocPixels()) {
REG_FIDDLE(Bitmap_tryAllocPixels_3, 256, 50, false, 0)
@ kOpaque_SkAlphaType
pixel is opaque
@ kGray_8_SkColorType
pixel with grayscale level in 8-bit byte
constexpr SkColor SK_ColorBLACK
static void draw(SkCanvas *canvas, SkRect &target, int x, int y)
void scale(SkScalar sx, SkScalar sy)
void drawImage(const SkImage *image, SkScalar left, SkScalar top)
static SkImageInfo Make(int width, int height, SkColorType ct, SkAlphaType at)