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.
Unfortunately, activation email could not send to your email. Please try again.

dpi scaling

Thread ID:





11040 Feb 21,2004 05:03 AM Feb 21,2004 09:30 AM Windows Forms 2
Tags: GridControl
Administrator [Syncfusion]
Asked On February 21, 2004 05:03 AM

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!

Administrator [Syncfusion]
Replied On 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.

Administrator [Syncfusion]
Replied On 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


This post will be permanently deleted. Are you sure you want to continue?

Sorry, An error occured while processing your request. Please try again later.

You are using an outdated version of Internet Explorer that may not display all features of this and other websites. Upgrade to Internet Explorer 8 or newer for a better experience.