This method retrieves the value of resolution property of an image
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 GetDpi method retrieves the value of 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 of the image will be set in the Xdpi and Ydpi properties (for the image set in the ImageHandle) and in the Layer(LayerNo).Xdpi and Layer(LayerNo).Ydpi (for images set in the Layer(LayerNo).ImageHandle property).
Even if you do not execute this method, the value of the resolution property of an image is automatically set whenever an image is set in the ImageHandle or Layer(LayerNo).ImageHandle properties.
Executing method with parameters:
If successful, the resolution values of the image will be set into Xdpi and Ydpi parameters.
Differences from ImageKit7/8/9/10 ActiveX
The GetDpi method with parameters is the same as the ActiveX GetDpiF method.