53 {
55 if (!srcImg) {
56 *errorMsg = "Could not load images/rainbow-gradient.png. "
57 "Did you forget to set the resourcePath?";
59 }
62
67
68
73
74
81
82
90
91
98
100 }
static void info(const char *fmt,...) SK_PRINTF_LIKE(1
@ kPremul_SkAlphaType
pixel components are premultiplied by alpha
@ kRGBA_F16_SkColorType
pixel with half floats for red, green, blue, alpha;
SK_API int SkColorTypeBytesPerPixel(SkColorType ct)
SkImageInfo imageInfo() const
void drawImage(const SkImage *image, SkScalar left, SkScalar top)
static sk_sp< SkColorSpace > MakeSRGB()
T * reset(size_t count=0)
static sk_sp< SkImage > encode_pixmap_and_make_image(const SkPixmap &src, SkJpegEncoder::AlphaOption alphaOption)
static void read_into_pixmap(SkPixmap *dst, SkImageInfo dstInfo, void *dstPixels, sk_sp< SkImage > src)
static SkImageInfo MakeN32Premul(int width, int height)
SkColorSpace * colorSpace() const
static SkImageInfo Make(int width, int height, SkColorType ct, SkAlphaType at)