4REG_FIDDLE(Pixmap_extractSubset, 256, 128,
false, 3) {
6 std::vector<int32_t> pixels;
static void draw(SkCanvas *canvas, SkRect &target, int x, int y)
void drawImage(const SkImage *image, SkScalar left, SkScalar top)
bool readPixels(GrDirectContext *context, const SkImageInfo &dstInfo, void *dstPixels, size_t dstRowBytes, int srcX, int srcY, CachingHint cachingHint=kAllow_CachingHint) const
SkAlphaType alphaType() const
bool extractSubset(SkPixmap *subset, const SkIRect &area) const
sk_sp< const SkImage > image
static SkRect inset(const SkRect &r)
static SkImageInfo Make(int width, int height, SkColorType ct, SkAlphaType at)