Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Doesn't Work correct , if Screen is scaled #5

Open
milesdream opened this issue Oct 2, 2022 · 0 comments
Open

Doesn't Work correct , if Screen is scaled #5

milesdream opened this issue Oct 2, 2022 · 0 comments

Comments

@milesdream
Copy link

if we have a Screen Scale in Settings Control System -> Dispay -> Scale
of 125%

EyeDropperWindowsAdorner.cs
protected override void OnRender(DrawingContext drawingContext)
{
..
..
// ToDo Scalefactor
transformGroup.Children.Add(new TranslateTransform(Position.X/1.25, Position.Y/1.25));

and in
EyeDropperWindow.xaml.cs
protected override void OnMouseMove(MouseEventArgs e)
{
..
var pos = e.GetPosition(this);
// ToDo Scalefactor
pos.X = pos.X*1.25; pos.Y = pos.Y * 1.25;

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

1 participant