|
Ream v0.1.0-1
C++ graphics library for Linux
|
Describes how to draw an image (or a portion of it) onto an RSurface's viewport. More...
#include <RPainter.h>
Public Attributes | |
| std::shared_ptr< RImage > | image |
| The image to draw. | |
| CZTransform | srcTransform { CZTransform::Normal } |
| Transformation applied to the source rect before scaling. | |
| SkScalar | srcScale { 1.f } |
Scale factor applied to src. | |
| SkRect | src {} |
| Portion of the image to draw. | |
| SkIRect | dst {} |
| Target rect within the RSurface viewport where the image will be drawn. | |
| RImageFilter | minFilter { RImageFilter::Linear } |
| Filter to use when the image is minified (i.e., scaled down). | |
| RImageFilter | magFilter { RImageFilter::Linear } |
| Filter to use when the image is magnified (i.e., scaled up). | |
| RImageWrap | wrapS { RImageWrap::ClampToEdge } |
| Wrapping mode for horizontal (S-axis) texture coordinates. | |
| RImageWrap | wrapT { RImageWrap::ClampToEdge } |
| Wrapping mode for vertical (T-axis) texture coordinates. | |
Describes how to draw an image (or a portion of it) onto an RSurface's viewport.
This struct is used by RPainter::drawImage() to define source and destination rects, transformations, and sampling options for drawing an RImage.
| std::shared_ptr<RImage> image |
The image to draw.
If nullptr, drawImage() will fail and return false.
| CZTransform srcTransform { CZTransform::Normal } |
Transformation applied to the source rect before scaling.
Defaults to the identity transformation (no change).
| SkScalar srcScale { 1.f } |
Scale factor applied to src.
| SkRect src {} |
Portion of the image to draw.
This rect can extend beyond the image bounds. It is affected by both srcTransform and srcScale.
srcScale to 1.f.If width or height are <= 0.f, they will be clamped to a small positive delta.
| SkIRect dst {} |
| RImageFilter minFilter { RImageFilter::Linear } |
Filter to use when the image is minified (i.e., scaled down).
| RImageFilter magFilter { RImageFilter::Linear } |
Filter to use when the image is magnified (i.e., scaled up).
| RImageWrap wrapS { RImageWrap::ClampToEdge } |
Wrapping mode for horizontal (S-axis) texture coordinates.
| RImageWrap wrapT { RImageWrap::ClampToEdge } |
Wrapping mode for vertical (T-axis) texture coordinates.