Go to the source code of this file.
|
| REG_FIDDLE (Bitmap_tryAllocPixels_3, 256, 50, false, 0) |
|
◆ REG_FIDDLE()
REG_FIDDLE |
( |
Bitmap_tryAllocPixels_3 |
, |
|
|
256 |
, |
|
|
50 |
, |
|
|
false |
, |
|
|
0 |
|
|
) |
| |
Definition at line 4 of file Bitmap_tryAllocPixels_3.cpp.
4 {
6 uint8_t set1[5] = { 0xCA, 0xDA, 0xCA, 0xC9, 0xA3 };
11 if (
bitmap.tryAllocPixels()) {
16 }
17}
18}
@ 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)