Go to the source code of this file.
|
| REG_FIDDLE (Bitmap_readPixels_3, 256, 128, false, 3) |
|
◆ REG_FIDDLE()
REG_FIDDLE |
( |
Bitmap_readPixels_3 |
, |
|
|
256 |
, |
|
|
128 |
, |
|
|
false |
, |
|
|
3 |
|
|
) |
| |
Definition at line 4 of file Bitmap_readPixels_3.cpp.
4 {
6 std::vector<int32_t> srcPixels;
8 for (
int i = 0;
i < 2; ++
i) {
13 }
14 canvas->
scale(.25f, .25f);
19}
20}
@ kPremul_SkAlphaType
pixel components are premultiplied by alpha
@ kBGRA_8888_SkColorType
pixel with 8 bits for blue, green, red, alpha; in 32-bit word
@ kRGBA_8888_SkColorType
pixel with 8 bits for red, green, blue, alpha; in 32-bit word
static void draw(SkCanvas *canvas, SkRect &target, int x, int y)
bool readPixels(const SkImageInfo &dstInfo, void *dstPixels, size_t dstRowBytes, int srcX, int srcY) const
void scale(SkScalar sx, SkScalar sy)
void drawImage(const SkImage *image, SkScalar left, SkScalar top)
static SkImageInfo MakeN32Premul(int width, int height)
static SkImageInfo Make(int width, int height, SkColorType ct, SkAlphaType at)