Go to the source code of this file.
|
| REG_FIDDLE (Color_Type_Alpha_8, 256, 64, false, 0) |
|
◆ REG_FIDDLE()
REG_FIDDLE |
( |
Color_Type_Alpha_8 |
, |
|
|
256 |
, |
|
|
64 |
, |
|
|
false |
, |
|
|
0 |
|
|
) |
| |
Definition at line 5 of file Color_Type_Alpha_8.cpp.
5 {
10 bitmap.allocPixels(imageInfo);
14 orangePaint.
setARGB(0xFF, 0xFF, 0xA5, 0x00);
16 uint8_t
alpha8[] = { 0xFF, 0xBB, 0x77, 0x33 };
18 if (
bitmap.writePixels(alphaPixmap, 0, 0)) {
20 }
21}
22}
static const uint8_t alpha8[kNumPixels]
@ kOpaque_SkAlphaType
pixel is opaque
@ kAlpha_8_SkColorType
pixel with alpha 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)
void setARGB(U8CPU a, U8CPU r, U8CPU g, U8CPU b)
size_t minRowBytes() const
static SkImageInfo Make(int width, int height, SkColorType ct, SkAlphaType at)