Go to the source code of this file.
|
| REG_FIDDLE (Bitmap_extractSubset, 256, 256, true, 3) |
|
◆ REG_FIDDLE()
REG_FIDDLE |
( |
Bitmap_extractSubset |
, |
|
|
256 |
, |
|
|
256 |
, |
|
|
true |
, |
|
|
3 |
|
|
) |
| |
Definition at line 5 of file Bitmap_extractSubset.cpp.
5 {
11 for (
int left: { -100, 0, 100, 1000 } ) {
12 for (
int right: { 0, 100, 1000 } ) {
15 SkDebugf(
"subset: %4d, %4d, %4d, %4d ",
b.fLeft,
b.fTop,
b.fRight,
b.fBottom);
16 SkDebugf(
"success; %s", success ?
"true" :
"false");
17 if (success) {
19 SkDebugf(
" subset: %d, %d, %d, %d",
s.fLeft,
s.fTop,
s.fRight,
s.fBottom);
20 }
22 }
23 }
24}
25}
void SK_SPI SkDebugf(const char format[],...) SK_PRINTF_LIKE(1
static bool left(const SkPoint &p0, const SkPoint &p1)
static bool right(const SkPoint &p0, const SkPoint &p1)
static void draw(SkCanvas *canvas, SkRect &target, int x, int y)
void getBounds(SkRect *bounds) const
bool extractSubset(SkBitmap *dst, const SkIRect &subset) const
Optional< SkRect > bounds
static constexpr SkIRect MakeLTRB(int32_t l, int32_t t, int32_t r, int32_t b)