Go to the source code of this file.
◆ REG_FIDDLE()
REG_FIDDLE |
( |
Bitmap_extractSubset |
, |
|
|
256 |
, |
|
|
256 |
, |
|
|
true |
, |
|
|
3 |
|
|
) |
| |
Definition at line 4 of file Bitmap_extractSubset.cpp.
4 {
10 for (
int left: { -100, 0, 100, 1000 } ) {
11 for (
int right: { 0, 100, 1000 } ) {
14 SkDebugf(
"subset: %4d, %4d, %4d, %4d ",
b.fLeft,
b.fTop,
b.fRight,
b.fBottom);
15 SkDebugf(
"success; %s", success ?
"true" :
"false");
16 if (success) {
18 SkDebugf(
" subset: %d, %d, %d, %d",
s.fLeft,
s.fTop,
s.fRight,
s.fBottom);
19 }
21 }
22 }
23}
24}
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)