Products | Support | Email a link to this topic. | Send comments on this topic. | Back to Introduction - All Topics | Help Version 19.0.4.3
|
Leadtools.Controls Assembly > Leadtools.Controls Namespace : ControlSizeMode Enumeration |
public enum ControlSizeMode : System.Enum
'Declaration
Public Enum ControlSizeMode Inherits System.Enum
Value | Member | Description |
---|---|---|
0x00000000 | None | No special sizing |
0x00000001 | ActualSize | Use the image actual size |
0x00000002 | 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. |
0x00000003 | 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). |
0x00000004 | FitWidth | Fit the image width to be the size of the width of the viewing area while maintaining the aspect ratio. |
0x00000005 | FitHeight | Fit the image height to be the size of the height of the viewing area while maintaining the aspect ratio. |
0x00000006 | 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
System.Object
System.ValueType
System.Enum
Leadtools.Controls.ControlSizeMode