-
Notifications
You must be signed in to change notification settings - Fork 17
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
Fix display scaling and positioning #6
base: master
Are you sure you want to change the base?
Fix display scaling and positioning #6
Conversation
Remove dead code. Harmonize formatting.
The DropShadowEffect can cause access violations.
WPF uses coordinates and sizes based on a virtual 96dpi screen. If a user sets display scaling (ex. 150%), the virtual WPF pixels will not be the same as the native pixels.
The primary screen's top/left coordinates are 0,0. When there are multiple screens, they can be placed to the left and/or above the primary, which means their coordinates will be negative.
Hello, I have no idea what all the coding means when I look through this information. But I have a very basic question that I hope you can answer. I have an image brought up in Photoshop that is approximately 2357 x 2357 pixels at 300 DPI. When I use the Screen Ruler, it measures the image as 713 x 761. Is there a setting that I need to adjust to make the Screen Ruler read my image exactly (or close) to what the image is? |
The screen ruler measure the screen pixels. You are probably not displaying the image at 100% zoom. |
Thank you so much for your reply!!! That totally makes sense! So if my image is at 50%, then I can use the ruler and multiple by 2 to get the correct reading! Thank you so much for explaining that, I never would have figured that out...it seems so simple now.
Thanks again
NJ King
On 3/13/2024 4:22:41 AM, Daniel Rose ***@***.***> wrote:
Hello, I have no idea what all the coding means when I look through this information. But I have a very basic question that I hope you can answer. I have an image brought up in Photoshop that is approximately 2357 x 2357 pixels at 300 DPI. When I use the Screen Ruler, it measures the image as 713 x 761. Is there a setting that I need to adjust to make the Screen Ruler read my image exactly (or close) to what the image is?
The screen ruler measure the screen pixels. You are probably not displaying the image at 100% zoom.
—
Reply to this email directly, view it on GitHub [#6 (comment)], or unsubscribe [https://github.com/notifications/unsubscribe-auth/AKPNFKZZEG2INH4UFBZZEYDYYAEE3AVCNFSM6AAAAAAQYVMKMSVHI2DSMVQWIX3LMV43OSLTON2WKQ3PNVWWK3TUHMYTSOJTG44TQMBYGQ].
You are receiving this because you commented.Message ID: ***@***.***>
[fc8e879a-1f10-47d2-8da7-e9fbfc2f2d9e]
|
This solves some problems: