Go to the source code of this file.
◆ REG_FIDDLE()
REG_FIDDLE |
( |
Pixmap_addr |
, |
|
|
256 |
, |
|
|
256 |
, |
|
|
true |
, |
|
|
3 |
|
|
) |
| |
Definition at line 4 of file Pixmap_addr.cpp.
4 {
6 std::vector<int32_t> pixels;
11 SkDebugf(
"pixels address: 0x%p\n", pixmap.addr());
13 if (pixmap.extractSubset(&
inset, {128, 128, 512, 512})) {
15 }
16}
17}
void SK_SPI SkDebugf(const char format[],...) SK_PRINTF_LIKE(1
static void draw(SkCanvas *canvas, SkRect &target, int x, int y)
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)