Go to the source code of this file.
|
| REG_FIDDLE (Canvas_drawImageRect_2, 256, 256, false, 4) |
|
◆ REG_FIDDLE()
REG_FIDDLE |
( |
Canvas_drawImageRect_2 |
, |
|
|
256 |
, |
|
|
256 |
, |
|
|
false |
, |
|
|
4 |
|
|
) |
| |
Definition at line 4 of file Canvas_drawImageRect_2.cpp.
4 {
6
7 for (
auto i : { 1, 2, 4, 8 } ) {
11 }
12}
13}
static void draw(SkCanvas *canvas, SkRect &target, int x, int y)
@ kStrict_SrcRectConstraint
sample only inside bounds; slower
void drawImageRect(const SkImage *, const SkRect &src, const SkRect &dst, const SkSamplingOptions &, const SkPaint *, SrcRectConstraint)
sk_sp< const SkImage > image
static constexpr SkRect MakeXYWH(float x, float y, float w, float h)
static constexpr SkRect MakeLTRB(float l, float t, float r, float b)