Go to the source code of this file.
|
| REG_FIDDLE (Bitmap_notifyPixelsChanged, 256, 20, false, 0) |
|
◆ REG_FIDDLE()
REG_FIDDLE |
( |
Bitmap_notifyPixelsChanged |
, |
|
|
256 |
, |
|
|
20 |
, |
|
|
false |
, |
|
|
0 |
|
|
) |
| |
Definition at line 4 of file Bitmap_notifyPixelsChanged.cpp.
4 {
10 canvas->
scale(16, 16);
14 bitmap.notifyPixelsChanged();
17}
18}
@ kOpaque_SkAlphaType
pixel is opaque
@ kRGBA_8888_SkColorType
pixel with 8 bits for red, green, blue, alpha; in 32-bit word
SK_API SkPMColor SkPreMultiplyColor(SkColor c)
constexpr SkColor SK_ColorBLUE
constexpr SkColor SK_ColorRED
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)
static SkImageInfo Make(int width, int height, SkColorType ct, SkAlphaType at)