4REG_FIDDLE(f16to8888drawImageBug, 256, 256,
false, 0) {
20 surface2->getCanvas()->drawImage(
surface->makeImageSnapshot(), 0, 0);
23 canvas->
drawImage(surface2->makeImageSnapshot(), 50, 0);
@ kPremul_SkAlphaType
pixel components are premultiplied by alpha
@ kRGBA_F16_SkColorType
pixel with half floats for red, green, blue, alpha;
static void draw(SkCanvas *canvas, SkRect &target, int x, int y)
void drawImage(const SkImage *image, SkScalar left, SkScalar top)
static sk_sp< SkColorSpace > MakeSRGB()
static sk_sp< SkColorSpace > MakeSRGBLinear()
#define REG_FIDDLE(NAME, W, H, TEXT, I)
SK_API sk_sp< SkSurface > Raster(const SkImageInfo &imageInfo, size_t rowBytes, const SkSurfaceProps *surfaceProps)
static SkImageInfo Make(int width, int height, SkColorType ct, SkAlphaType at)
static constexpr SkRect MakeXYWH(float x, float y, float w, float h)