ImageScale
Image scaling behaviors.
Header | #include "nativeui/standard_enums.h" |
Namespace | namespace nu |
Type | enum class |
This type can have following values:
ImageScale::None
- The image is not scaled.ImageScale::Fill
- Scale each dimension to exactly fit destination, the aspect ratio of the image is no preserved.ImageScale::Down
- If it is too large for the destination, scale the image down while preserving the aspect ratio.ImageScale::UpOrDown
- Scale the image to its maximum possible dimensions while both staying within the destination area and preserving its aspect ratio.