|
Bitmap resolution question |
Posted by David Wilson on Oct-17-2011 23:08 |
|
As always, thank you for your timely and informative responses to past inquiries.
Many ChartDirector interfaces require font sizes in points, which is an absolution distance scale (1 point = 1/72 inch). When a bitmap is displayed, however, the pixel size depends on the screen resolution. When generating bitmap displays, how does ChartDirector convert points to pixels? Does it use the screen resolution or a default conversion factor?
Knowing this will help us ensure monitor-independent font sizes in our graphical displays. |
Re: Bitmap resolution question |
Posted by Peter Kwan on Oct-18-2011 00:10 |
|
Hi David,
Many years ago when ChartDirector was designed, we have hard coded the conversion factor based on the assumed resolution of 96 dpi (which is the default for Windows). Even though we know now this is not ideal, but for backwards compatibility, this behaviour probably will stay as the default. In other words, the conversion factor is hard coded to be:
size_in_pixels = size_in_points x 96 / 72
Hope this can help.
Regards
Peter Kwan |
|