J
James Hancock
There are a couple of things in the framework that don't handle nicely with
DPI changes (well lots of things but two that I have noticed)
#1 Background graphics on forms tile in large fonts instead of drawing the
graphic larger.
#2 All of the sizing functions are off when looking at graphics. I.e. a 24
pixel graphic is no longer 24 pixels in relation to the newly sized window
for large fonts. Hence if you size yoru control based on the size of a
graphic, the control is VERY small and looks out of place.
#3 Graphics all draw smaller instead of resizing along with everything else
the way they should.
Ok, so that's not such a big deal if we can work around these by getting the
DPI that windows is running in (the screen is running in) but the only
function I can find on this is the DPI of the graphics object, which of
course doesn't cut it. Any ideas on how to get the DPI of windows through
the .net framework so that I can do some math?
Thanks,
James Hancock
DPI changes (well lots of things but two that I have noticed)
#1 Background graphics on forms tile in large fonts instead of drawing the
graphic larger.
#2 All of the sizing functions are off when looking at graphics. I.e. a 24
pixel graphic is no longer 24 pixels in relation to the newly sized window
for large fonts. Hence if you size yoru control based on the size of a
graphic, the control is VERY small and looks out of place.
#3 Graphics all draw smaller instead of resizing along with everything else
the way they should.
Ok, so that's not such a big deal if we can work around these by getting the
DPI that windows is running in (the screen is running in) but the only
function I can find on this is the DPI of the graphics object, which of
course doesn't cut it. Any ideas on how to get the DPI of windows through
the .net framework so that I can do some math?
Thanks,
James Hancock