Go to the source code of this file.
◆ REG_FIDDLE()
REG_FIDDLE |
( |
Canvas_drawAtlas |
, |
|
|
256 |
, |
|
|
256 |
, |
|
|
false |
, |
|
|
3 |
|
|
) |
| |
Definition at line 4 of file Canvas_drawAtlas.cpp.
4 {
6
8 SkRect tex[] = { { 0, 0, 250, 250 }, { 0, 0, 250, 250 } };
14}
15}
@ kSrcOver
r = s + (1-sa)*d
static void draw(SkCanvas *canvas, SkRect &target, int x, int y)
void drawAtlas(const SkImage *atlas, const SkRSXform xform[], const SkRect tex[], const SkColor colors[], int count, SkBlendMode mode, const SkSamplingOptions &sampling, const SkRect *cullRect, const SkPaint *paint)
sk_sp< const SkImage > image
PODArray< SkRSXform > xforms
PODArray< SkColor > colors
SkSamplingOptions sampling