Enum TransformAspect
public enum TransformAspect
- Extension Methods
Fields
AspectCover = 8Enlarges to cover the viewport or reduces size to fit inside the viewport both respecting aspect ratio. Always covers the entire viewport, potentially cropping the image if it's larger, never leaves empty space inside viewport.
AspectFill = 4Covers viewport respecting aspect without scaling down if bigger, could result in the image being cropped
AspectFit = 3Fit inside viewport respecting aspect without enlarging if smaller, could result in the image having some blank space around
AspectFitFill = 5AspectFit + AspectFill. Enlarges to cover the viewport or reduces size to fit inside the viewport both respecting aspect ratio, ensuring the entire image is always visible, potentially leaving some parts of the viewport uncovered.
Cover = 7Enlarges to cover the viewport if smaller and reduces size if larger, all without respecting aspect ratio. Same as AspectFitFill but will crop the image to fill entire viewport.
Fill = 1Enlarges to fill the viewport without maintaining aspect ratio if smaller, but does not scale down if larger
Fit = 2Fit without maintaining aspect ratio and without enlarging if smaller
FitFill = 6Fit + Fill. Enlarges to cover the viewport or reduces size to fit inside the viewport without respecting aspect ratio, ensuring the entire image is always visible, potentially leaving some parts of the viewport uncovered.
None = 0Tile = 9TODO very soon!