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.
Syncfusion Feedback

dpi scaling

Thread ID:

Created:

Updated:

Platform:

Replies:

11040 Feb 21,2004 10:03 AM UTC Feb 21,2004 02:30 PM UTC Windows Forms 2
loading
Tags: GridControl
Administrator [Syncfusion]
Asked On February 21, 2004 10:03 AM UTC

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 11:16 AM UTC

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 02:30 PM UTC

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

CONFIRMATION

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.

Warning Icon 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.Close Icon

;