Go to the source code of this file.
◆ REG_FIDDLE()
REG_FIDDLE |
( |
Color_Type_Gray_8 |
, |
|
|
256 |
, |
|
|
64 |
, |
|
|
false |
, |
|
|
0 |
|
|
) |
| |
Definition at line 5 of file Color_Type_Gray_8.cpp.
5 {
10 bitmap.allocPixels(imageInfo);
14 uint8_t
gray8[] = { 0xFF, 0xBB, 0x77, 0x33 };
16 if (
bitmap.writePixels(grayPixmap, 0, 0)) {
18 }
19}
20}
static const uint8_t gray8[kNumPixels]
@ kOpaque_SkAlphaType
pixel is opaque
@ kGray_8_SkColorType
pixel with grayscale level in 8-bit byte
constexpr SkColor SK_ColorGREEN
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)
size_t minRowBytes() const
static SkImageInfo Make(int width, int height, SkColorType ct, SkAlphaType at)