ResizeMode Enum
Definition
Important
Some information relates to prerelease product that may be substantially modified before it’s released. Microsoft makes no warranties, express or implied, with respect to the information provided here.
Specifies how an image should be resized to fit a target area.
public enum class ResizeMode
public enum ResizeMode
type ResizeMode =
Public Enum ResizeMode
- Inheritance
-
ResizeMode
Fields
Name | Value | Description |
---|---|---|
Fit | 0 | Preserves aspect ratio and ensures the image fits within the target dimensions. May leave empty space if the aspect ratios don't match. |
Bleed | 1 | Preserves aspect ratio and fills the target dimensions, potentially cropping the image. |
Stretch | 2 | Ignores aspect ratio and stretches the image to exactly fit the target dimensions. |