This method sets a new value in the 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 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 ActiveX
The SetDpi method with parameters replaces the ActiveX method SetDpiF