Skip to content

[Question/suggestion] Can System.Drawing.Graphics be PerMonitorV2 compatible? #12133

Open

Description

Background and motivation

Currently in PerMonitorV2 apps after autoscaling happens (dpi changed) DpiX/DpiY from Graphics objects (for example from OnPaint(PaintEventArgs e)) still return starting values. This raises some questions (I found many similar questions, but no answers):

  • Is it only DpiX/DpiY properties problem and we still able to use these graphics objects normally (keeping in mind real dpi of course)? The fact that these objects continue to be used normally within Winforms gives me a certain optimism on this matter :)
    • If this is only DpiX/DpiY problem, then can we solve it - make them return real dpi?
    • If this is whole Graphics problem, then can we solve it - make Graphics compatible with PerMonitorV2?
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Metadata

Assignees

Labels

api-suggestion(1) Early API idea and discussion, it is NOT ready for implementationarea-HDPIHDPI, not specific to Dpi mode of apparea-HDPI-PMv2Issues related to high DPI PerMonitorV2 mode

Type

No type

Projects

No projects

Relationships

None yet

Development

No branches or pull requests

Issue actions