Version

ImageScaling Property

Returns or sets a flagged value which determines the manner in which size and/or placement of images is adjusted when the image size is different than that of the area in which it is displayed.
Syntax
'Declaration
 
Public Property ImageScaling As ImageScaling
public ImageScaling ImageScaling {get; set;}
Remarks

Note that the original aspect ratio of the image is always maintained.

Note that the scaling can be changed for a specific image using the Scaling property.

By default, images whose natural size is smaller than that of the image display area are not resized to fit in the image display area, whereas images whose natural size is larger are resized. In other words, images are shrunk when necessary, but not expanded.

Requirements

Target Platforms: Windows 10, Windows 8.1, Windows 8, Windows 7, Windows Server 2012, Windows 7, Windows Vista SP1 or later, Windows XP SP3, Windows Server 2008 (Server Core not supported), Windows Server 2008 R2 (Server Core supported with SP1 or later), Windows Server 2003 SP2

See Also