@ kPremul_SkAlphaType
pixel components are premultiplied by alpha
constexpr SkColor SK_ColorRED
constexpr SkColor SK_ColorBLACK
REG_FIDDLE(Surface_makeSurface, 256, 96, false, 0)
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 clear(SkColor color)
void drawImage(const SkImage *image, SkScalar left, SkScalar top)
sk_sp< SkSurface > makeSurface(const SkImageInfo &imageInfo)
bool peekPixels(SkPixmap *pixmap)
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)