This method sets a new value in the resolution property of an image

[C++Builder]   [ bool = ]imagekitcontrolname->SetDpi()
[C++Builder]   [ bool = ]imagekitcontrolname->SetDpi(float Xdpi, float Ydpi)
[Delphi]   [ Boolean = ]imagekitcontrolname.SetDpi
[Delphi]   [ Boolean = ]imagekitcontrolname.SetDpi(Xdpi, Ydpi: Single)

Parameters

Name Explanation
Xdpi The number of pixels per horizontal inch
Ydpi The number of pixels per vertical inch

Return Value

Returns True if successful, otherwise returns False.

Explanation

The SetDpi method sets a new value into the resolution property of the image referred to by the LayerNo property (ImageHandle property or Layer(LayerNo).ImageHandle property).

Executing method with no parameters:

If successful, the resolution values set in the Xdpi and Ydpi properties (for the image set in the ImageHandle) or set in the Layer(LayerNo).Xdpi and Layer(LayerNo).Ydpi (for images set in the Layer(LayerNo).ImageHandle property) will be set to the resolution property of the image.

Executing method with parameters:

If successful, the resolution values set in the Xdpi and Ydpi parameters will be set in the resolution property of the image.

Differences from ImageKit7/8/9/10 ActiveX

The SetDpi method with parameters replaces the ActiveX method SetDpiF

The ImageKit10 VCL is a product created by Newtone Corporation