Resolution property
This property specifies image resolution in dots per inch (DPI). After this property is set,
the newly created image will have specified resolution information. This feature can be
necessary for creating images for printing.
The zero value (default state) means the image will have default resolution (as a rule, 72dpi).
The GetFileDimensions method sets this property to image
resolution in DPI if Jpeg, Png or Tiff image has been recognized. This feature allows you
to check not only image dimensions but image resolution too.
Note
Not all image formats support this feature. In ShotGraph it works on JPEG, PNG and TIFF images
for reading, and on JPEG, PNG images for writing.
Example
......................
Set g = CreateObject("shotgraph.image")
......................
' Set image resolution to 300dpi
g.Resolution = 300
g.JpegImage 90,0,path_to_file
......................
......................