We use cookies to give you the best experience on our website. If you continue to browse, then you agree to our privacy policy and cookie policy. Image for the cookie policy date

dpi scaling

Hi, 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? Thanks!

2 Replies

AD Administrator Syncfusion Team February 21, 2004 06:16 AM

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.


AD Administrator Syncfusion Team February 21, 2004 09:30 AM

Hi, 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). TIA! scaling_2642.zip

Loader.
Live Chat Icon For mobile
Up arrow icon