Enum StretchType
Specifies how images should be scaled to fit their target boundaries.
public enum StretchType
Fields
Fill = 2Stretch image to the outer boundaries without preserving aspect ratio, i.e. fill the boundaries completely. The whole image remains visible.
Original = 0Keep original image size. Part of the image could be cut out if it's outside the outer boundaries.
Preserve = 1Stretch image to the outer boundaries while preserving aspect ratio and keeping the whole image visible.
Zoom = 3Stretch and center image to fill the outer boundaries completely while keeping aspect ratio. Not fitting up/down or top/bottom parts could be cut out.