Go to the source code of this file.
|
| REG_FIDDLE (Pixmap_extractSubset, 256, 128, false, 3) |
|
◆ REG_FIDDLE()
REG_FIDDLE |
( |
Pixmap_extractSubset |
, |
|
|
256 |
, |
|
|
128 |
, |
|
|
false |
, |
|
|
3 |
|
|
) |
| |
Definition at line 4 of file Pixmap_extractSubset.cpp.
4 {
6 std::vector<int32_t> pixels;
12 if (pixmap.extractSubset(&
inset, {128, 128, 512, 512})) {
16 }
17}
18}
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
sk_sp< const SkImage > image
static SkRect inset(const SkRect &r)
static SkImageInfo Make(int width, int height, SkColorType ct, SkAlphaType at)