Set DPI (VectorResolution) for ImageVectorOutput in mm
Set DPI (VectorResolution) for ImageVectorOutput in mm
I draw on an Image in unit Millimeters. I can get the DPI with VectorResolutionX() and VectorResolutionY(). It seems the default DPI are 96. But how I can set the default DPI?
Re: Set DPI (VectorResolution) for ImageVectorOutput in mm
The default DPI is the reported screen resolution.
The DPI setting is just a definition for how a length is converted to a pixel amount. You can easily change it by applying a scaling factor like so:
The DPI setting is just a definition for how a length is converted to a pixel amount. You can easily change it by applying a scaling factor like so:
Code: Select all
; Scale so 1 inch will convert to 300 pixels
ScaleCoordinates(300/VectorResolutionX(), 300/VectorResolutionY())
quidquid Latine dictum sit altum videtur