Table of Contents

Enum TransformAspect

Namespace
DrawnUi.Draw
Assembly
DrawnUi.Maui.dll
public enum TransformAspect
Extension Methods

Fields

AspectCover = 8

Enlarges 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 = 4

Covers viewport respecting aspect without scaling down if bigger, could result in the image being cropped

AspectFit = 3

Fit inside viewport respecting aspect without enlarging if smaller, could result in the image having some blank space around

AspectFitFill = 5

AspectFit + 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 = 7

Enlarges 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 = 1

Enlarges to fill the viewport without maintaining aspect ratio if smaller, but does not scale down if larger

Fit = 2

Fit without maintaining aspect ratio and without enlarging if smaller

FitFill = 6

Fit + 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 = 0
Tile = 9

TODO very soon!