[Visual
Basic] imagekitcontrolname.DisplayMode
[= DispModeConstants ]
[Visual
C++] [long =
]imagekitcontrolname.GetDisplayMode()
imagekitcontrolname.SetDisplayMode(long Val)
imagekitcontrolname.SetDisplayMode(long Val)
Property Value
Value | Explanation |
---|---|
0 | Clear |
1 | Scale (When the image is larger than the ImageKit Control, the image is scaled to fit within the ImageKit Control.) |
2 | Stretch (The image is stretched to fit the dimensions of the ImageKit Control.) |
3 | Actual Size (The image is displayed in according to the values of the DispScaleX and DispScaleY properties.) |
4 | FitToWidth (The image is scaled so that the width of the image matches the value of the ImageKit Control's Width property.) |
5 | FitToHeight (The image is scaled so that the height of the image matches the value of the ImageKit Control's Height property.) |
In Visual Basic, it is also possible to use the following constants: (ikClear = 0, ikScale = 1, ikStretch = 2, ikActualSize = 3, ikFitToWidth = 4, ikFitToHeight = 5).
Explanation
The DisplayMode property sets the display mode when images are displayed in the ImageKit Control.
Setting this value
This value can be set at run-time.Retrieving this value
This value can be retrieved at run-time.