[Visual Basic] [ Boolean
= ]imagekitcontrolname.SetDpi
[Visual C++] [
BOOL = ]imagekitcontrolname.SetDpi()
Parameters
None
Return Value
Returns True (nonzero) if successful, otherwise returns False (0).
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).
If successful, the resolution values 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).
Note: 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.