I have a function that scales forms on
the fly using screen width and height.
Now I realized that different dpi settings mess everything up. When I try the typical division method it doesn''t scale accurately at all. Has anyone figured out the correct formula for scaling including dpi?
I think you will always have to keep a fixed ratio of width to height to make things maintain their proportional look. Take a look at grid\samples\databound\griddataboundgridimagecell sample. The ImageCell has code that allows you to choose to keep the image in the same height to width ratio as you size it.
AdministratorFebruary 21, 2004 02:30 PM UTC
I wish it was that simple... I''m probably outside of the scope of this forum, but the info would be generally useful to anyone who deals with computers with different dpi settings.
I found a little code on microsoft but it still doesn''t scale properly.
I''ve attached what I''m talking about including the microsoft solution (the HIDPI functions).