Replies: 1 comment
-
See examples below
|
Beta Was this translation helpful? Give feedback.
0 replies
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
-
I am working on a screenshot utility using EGUI, so I want to display an image (screenshot) in its actual size, pixel to pixel. However, when I display an image using
widgets::Image
it is slightly bigger than its resolution.This is because
pixel_per_point
value is set to ~1.08 . I am on Linux with X11, and this value is calculated in thewinit
library here. It takes monitor resolution and physical size fromxrandr
, calculate dpi and divide to the reference DPI 96. As far I understand, it's expected behavior forwinit
library used to make GUIs have some physical size across multi-DPI displays.So my question is:
Is it possible to draw an image (texture) in it's actual size without scaling, but don't loose high-dpi support by forcing scale factor to 1.0? E.g. draw image in actual size and keep widgets scalin.g
Beta Was this translation helpful? Give feedback.
All reactions