Go to the source code of this file.
◆ REG_FIDDLE()
REG_FIDDLE |
( |
ImageInfo_makeWH |
, |
|
|
256 |
, |
|
|
144 |
, |
|
|
false |
, |
|
|
3 |
|
|
) |
| |
Definition at line 5 of file ImageInfo_makeWH.cpp.
5 {
14 inset.allocPixels(insetImageInfo);
19}
20}
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)
SkImageInfo imageInfo() const
void drawImage(const SkImage *image, SkScalar left, SkScalar top)
static SkRect inset(const SkRect &r)
SkImageInfo makeWH(int newWidth, int newHeight) const
static SkRect Make(const SkISize &size)
constexpr float height() const
constexpr float width() const