Parameters
Name | Explanation |
---|---|
Xdpi | The horizontal resolution (Number of pixels per horizontal inch) |
Ydpi | The vertical resolution (Number of pixels per vertical inch) |
Return Value
Returns True (nonzero) if successful, otherwise returns False (0).
Explanation
The GetDpiVariant method retrieves the value of 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).
This method is similiar to the GetDpi method except the resolution is retrieved as a variant type.
Example:
VB.NET
Dim Xdpi As Object = Nothing
Dim Ydpi As Oject = Nothing
Dim ret As Boolean =
ImageKit1.GetDpiVariant(Xdpi, Ydpi)
C#
object Xdpi, Ydpi;
Xdpi = Ydpi = null;
bool ret =
ImageKit1.GetDpiVariant(ref Xdpi, ref Ydpi);