Enum
ImageScaling

Specifies how an image should be scaled to fit within its allocated space.

Definition

Namespace:Telerik.WinControls.Enumerations

Assembly:Telerik.WinControls.dll

Syntax:

cs-api-definition
public enum ImageScaling

Fields

None

The image is displayed at its original size without any scaling.

Declaration

cs-api-definition
None = 0

Field Value

ImageScaling

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

cs-api-definition
SizeToFit = 1

Field Value

ImageScaling

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.

In this article
DefinitionFieldsNoneSizeToFit
Not finding the help you need?
Contact Support