This method displays the image. This method has been deprecated. Please use the DisplayImage method instead.

[C++Builder]   [ bool = ]imagekitcontrolname->Display(TVIkDispMode DisplayMode)
[Delphi]   [ Boolean = ]imagekitcontrolname.Display(DisplayMode: TVIkDispMode)

[TVIkDispMode Type]

Unit
     IkInit

type
     TVIkDispMode = (vikClear, vikScale, vikStretch, vikActualSize, vikFitToWidth, vikFitToHeight);

Parameters

Name Explanation
DisplayMode The display mode. Can be one of the following.

vikClear: Clears the image within the ImageKit Control

vikScale: Scale display mode. Images larger than the ImageKit Control will be scaled to fit within the control.

vikStretch: Stretch display mode. Images will be stretched to fill the ImageKit Control

vikActualSize: Actual size display mode (Please refer to the DispScaleX, DispScaleY properties)

vikFitToWidth: Fit to Width. Images will be scaled so that the width of the image is the same as the width of the ImageKit Control

vikFitToHeight: Fit to Height. Images will be scaled so that the height of the image is the same as the height of the ImageKit Control

Return Value

Returns True if successful, otherwise returns False.

Explanation

The Display method displays the image.

When the DisplayMode parameter is vikClear, the image displayed within the ImageKit Control is cleared. To display images in the ImageKit Control you must execute the Display method again.

When the DisplayMode parameter is a value other than vikClear and the ShowInDisp property is true, the image is displayed. (base image or layer image)

Images are displayed in the following order: the base image first then the Layer images (the images with lower indexes are displayed before the image with higher indexes)

Note that if the base image is not set, then the Layer images are not displayed.

IMPORTANT: This method has been deprecated. It is being maintained to provide backward compatibility with the ImageKit7. Please use the DisplayImage method instead.

Differences from ImageKit7/8/9/10 ActiveX

The VCL constants have a "v". In ActiveX, the constants are ikScale, IkStretch, IkActualSize, IkFitToWidth, and IkFitToHeight

 

The ImageKit10 VCL is a product created by Newtone Corporation