New to Telerik UI for WinFormsStart a free 30-day trial

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

Definition

Namespace:Telerik.WinControls.Enumerations

Assembly:Telerik.WinControls.dll

Syntax:

C#
public enum ImageScaling

Fields

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

C#
None = 0
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.

The image is scaled to fit within the available space while maintaining its aspect ratio.

C#
SizeToFit = 1
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