Enumeration ImageFit

ImageFit specifies the positioning of an image inside a viewport.

Enumeration Members

Enumeration Members

Contain: "Contain"

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.

Cover: "Cover"

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.

Fill: "Fill"

Stretches the image to fill the viewport regardless of aspect ratio.

None: "None"

Ignore height and width and use the original size.

Generated using TypeDoc