Go to the source code of this file.
|
| REG_FIDDLE (Surface_writePixels_2, 256, 96, false, 4) |
|
◆ REG_FIDDLE()
REG_FIDDLE |
( |
Surface_writePixels_2 |
, |
|
|
256 |
, |
|
|
96 |
, |
|
|
false |
, |
|
|
4 |
|
|
) |
| |
Definition at line 4 of file Surface_writePixels_2.cpp.
4 {
7 auto surfCanvas = surf->getCanvas();
9 surf->writePixels(
source, 25, 25);
12}
13}
constexpr SkColor SK_ColorGREEN
static void draw(SkCanvas *canvas, SkRect &target, int x, int y)
void drawImage(const SkImage *image, SkScalar left, SkScalar top)
sk_sp< const SkImage > image
SK_API sk_sp< SkSurface > Raster(const SkImageInfo &imageInfo, size_t rowBytes, const SkSurfaceProps *surfaceProps)
static SkImageInfo MakeN32Premul(int width, int height)