8 #ifndef SkTiledImageUtils_DEFINED
9 #define SkTiledImageUtils_DEFINED
17 #include "include/private/base/SkAPI.h"
65 DrawImageRect(canvas, image, src, dst, sampling, paint, constraint);
92 DrawImageRect(canvas, image, src, dst, sampling, paint, constraint);
102 DrawImage(canvas, image.
get(), x, y, sampling, paint, constraint);
float SkScalar
Definition: SkScalar.h:14
SkCanvas provides an interface for drawing, and how the drawing is clipped and transformed.
Definition: SkCanvas.h:99
SrcRectConstraint
Definition: SkCanvas.h:1468
@ kFast_SrcRectConstraint
sample outside bounds; faster
Definition: SkCanvas.h:1470
SkImage describes a two dimensional array of pixels to draw.
Definition: SkImage.h:270
int width() const
Returns pixel count in each row.
Definition: SkImage.h:283
int height() const
Returns pixel row count.
Definition: SkImage.h:289
SkPaint controls options applied when drawing.
Definition: SkPaint.h:44
T * get() const
Definition: SkRefCnt.h:303
SkTiledImageUtils' DrawImage/DrawImageRect methods are intended to be direct replacements for their S...
Definition: SkTiledImageUtils.h:21
SK_API void DrawImageRect(SkCanvas *canvas, const SkImage *image, const SkRect &src, const SkRect &dst, const SkSamplingOptions &sampling={}, const SkPaint *paint=nullptr, SkCanvas::SrcRectConstraint constraint=SkCanvas::kFast_SrcRectConstraint)
void DrawImage(SkCanvas *canvas, const SkImage *image, SkScalar x, SkScalar y, const SkSamplingOptions &sampling={}, const SkPaint *paint=nullptr, SkCanvas::SrcRectConstraint constraint=SkCanvas::kFast_SrcRectConstraint)
Definition: SkTiledImageUtils.h:78
static constexpr int kNumImageKeyValues
Definition: SkTiledImageUtils.h:105
SK_API void GetImageKeyValues(const SkImage *image, uint32_t keyValues[kNumImageKeyValues])
Retrieves a set of values that can be used as part of a cache key for the provided image.
SkRect holds four float coordinates describing the upper and lower bounds of a rectangle.
Definition: SkRect.h:582
static SkRect MakeIWH(int w, int h)
Returns constructed SkRect set to integer values (0, 0, w, h).
Definition: SkRect.h:623
static constexpr SkRect MakeXYWH(float x, float y, float w, float h)
Returns constructed SkRect set to (x, y, x + w, y + h).
Definition: SkRect.h:659
Definition: SkSamplingOptions.h:58