Go to the source code of this file.
|
| REG_FIDDLE (Surface_makeSurface, 256, 96, false, 0) |
|
◆ REG_FIDDLE()
REG_FIDDLE |
( |
Surface_makeSurface |
, |
|
|
256 |
, |
|
|
96 |
, |
|
|
false |
, |
|
|
0 |
|
|
) |
| |
Definition at line 4 of file Surface_makeSurface.cpp.
4 {
11 if (big->peekPixels(&pixmap)) {
15 }
16 if (lil->peekPixels(&pixmap)) {
20 }
21}
22}
@ kPremul_SkAlphaType
pixel components are premultiplied by alpha
constexpr SkColor SK_ColorRED
constexpr SkColor SK_ColorBLACK
static void draw(SkCanvas *canvas, SkRect &target, int x, int y)
sk_sp< SkImage > asImage() const
bool installPixels(const SkImageInfo &info, void *pixels, size_t rowBytes, void(*releaseProc)(void *addr, void *context), void *context)
void drawImage(const SkImage *image, SkScalar left, SkScalar top)
SK_API sk_sp< SkSurface > Raster(const SkImageInfo &imageInfo, size_t rowBytes, const SkSurfaceProps *surfaceProps)
static SkImageInfo MakeN32Premul(int width, int height)
static SkImageInfo MakeN32(int width, int height, SkAlphaType at)