Specifies how an image is positioned within a Picture Box.
[ResourceFinder(typeof(ResFinder))] public enum ImageSizeMode
<ResourceFinder(GetType(ResFinder))> Public Enum ImageSizeMode
The image is placed in the upper-left corner of the Picture Box. The image is clipped if it does not fit into the control's bounds.
The image is stretched or shrunk to fit into the current Picture Box dimensions.
The Picture Box size is adjusted to that of the image it contains.
This option is obsolete. To achieve the same result, set the XRPictureBox.Sizing property of a Picture Box to ImageSizeMode.Normal and the XRPictureBox.ImageAlignment property to ImageAlignment.MiddleCenter.
The image is sized proportionally (without clipping), so that it fits best within the Picture Box dimensions. If the height-to-width ratio of the control and the image are equal, the image will be resized to exactly fit into the control's dimensions. Otherwise, the closest matching image side (height or width) will be sized to the control, and the other side will be sized proportionally (possibly leaving empty space within the control).
If the Picture Box dimensions exceed that of the image it contains, the image is centered and shown full-size. Otherwise, the image is resized to fit into the control's dimensions.
The image is replicated within the Picture Box starting from the upper-left corner. The image is clipped if it does not fit into the control's dimensions.
Related API Members
The following properties accept/return ImageSizeMode values:
|Library||Related API Members|
|Cross-Platform Class Library||ImageBrick.SizeMode|
|ASP.NET Controls and MVC Extensions||ExportBinaryImageSettings.SizeMode|
An ImageSizeMode object is returned by the XRPictureBox.Sizing property.