Scale the image up or down to fill the viewport while preserving the aspect ratio. The image will be fully visible but will add empty space in the viewport if aspect ratios do not match.
Scale the image to fill both height and width of the viewport while preserving the aspect ratio, but will crop the image if aspect ratios do not match.
Stretches the image to fill the viewport regardless of aspect ratio.
Ignore height and width and use the original size.
Generated using TypeDoc
ImageFit specifies the positioning of an image inside a viewport.