Leadtools.Controls Namespace : ControlSizeMode Enumeration |
Leadtools.Controls.ControlSizeMode = function() { };
Leadtools.Controls.ControlSizeMode.prototype = {
none = 0,
actualSize = 1,
fit = 2,
fitAlways = 3,
fitWidth = 4,
fitHeight = 5,
stretch = 6,
};
Value | Member | Description |
---|---|---|
0 | none | No special sizing |
1 | actualSize | Use the image actual size |
2 | fit | Fit the image into the viewing area while maintaining the aspect ratio. If the image size is smaller than the viewing area, no resizing is done. |
3 | fitAlways | Always fit the image into the viewing area while maintaining the aspect ratio even if the image size is smaller than the viewing area (in which case, the image will be scaled up). |
4 | fitWidth | Fit the image width to be the size of the width of the viewing area while maintaining the aspect ratio. |
5 | fitHeight | Fit the image height to be the size of the height of the viewing area while maintaining the aspect ratio. |
6 | stretch | Fit the image to fill the viewing area. Aspect ratio might not be maintained. |
ControlSizeMode is used by the ImageViewer.Zoom and ImageViewerItem.Zoom methods.
For an example, refer to ImageViewer.Zoom