G
Guest
I am in the load event of a user control. I get its Graphics with
this.CreateGraphics()
The DpiX and DpiY are both always 96.0 This does not vary, regardless of the
actual resolution of the screen. I have tested the value in code that is
executed after the load event, and the value is the same.
The docs say that Dpix is "the horizontal resolution supported by this
Graphics". I don't know if this is supposed to mean the current resolution.
If not, it doesn't seem to be a very useful datum.
I have to draw accurately on the screen regardless of resolution. Any
solution would be helpful.
Thx
Marc
this.CreateGraphics()
The DpiX and DpiY are both always 96.0 This does not vary, regardless of the
actual resolution of the screen. I have tested the value in code that is
executed after the load event, and the value is the same.
The docs say that Dpix is "the horizontal resolution supported by this
Graphics". I don't know if this is supposed to mean the current resolution.
If not, it doesn't seem to be a very useful datum.
I have to draw accurately on the screen regardless of resolution. Any
solution would be helpful.
Thx
Marc