Go to the source code of this file.
◆ REG_FIDDLE()
REG_FIDDLE |
( |
ImageInfo_makeWH |
, |
|
|
256 |
, |
|
|
144 |
, |
|
|
false |
, |
|
|
3 |
|
|
) |
| |
Definition at line 4 of file ImageInfo_makeWH.cpp.
4 {
13 inset.allocPixels(insetImageInfo);
18}
19}
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)
sk_sp< const SkImage > image
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