EnumImageScaling
Specifies how an image should be scaled to fit within its allocated space.
Definition
Namespace:Telerik.WinControls.Enumerations
Assembly:Telerik.WinControls.dll
Syntax:
public enum ImageScaling
Fields
None
The image is displayed at its original size without any scaling.
Declaration
None = 0
Field Value
Remarks
When None is specified, the image maintains its natural dimensions regardless of the available space. If the image is larger than the available space, it may be clipped. If the space is larger than the image, the image will not fill the entire area.
SizeToFit
The image is scaled to fit within the available space while maintaining its aspect ratio.
Declaration
SizeToFit = 1
Field Value
Remarks
When SizeToFit is specified, the image is scaled proportionally to fit entirely within the available bounds without distortion. The entire image will be visible, but there may be empty space if the aspect ratios don't match perfectly.