[]
Specifies the way an image how to be stretched to fill the destination rectangle.
public enum ImageLayout
Center = 1Specifies the image is centered within the destination rectangle.
None = 0Specifies the image is left-aligned at the top across the destination rectangle.
Stretch = 2Specifies the image is resized to fill the destination dimensions. The aspect ratio is not preserved.
Tile = 5Specifies the image is tiled to fill destination dimensions.
Zoom = 3Specifies the image is resized to fit in the destination dimensions while it preserves its native aspect ratio.
ZoomToFill = 4Specifies the image is resized to fill the destination dimensions while it preserves its native aspect ratio. If the aspect ratio of the destination rectangle differs from the source, the source content is clipped to fit in the destination dimensions.