-
Notifications
You must be signed in to change notification settings - Fork 562
Description
Duplicate Check
- I have searched the opened issues and there are no duplicates
Describe the requested feature
I am making an application that requires taking a screenshot of a selected area of the screen. The area is selected by repositioning and resizing the application window, see attached image.
I can get the window size (page.window.width
, page.window.height
) and position (page.window.left
, page.window.top
) but these values are not in screen coordinates. They do not take into account the os scale factor.
I can convert them to screen coordinates by multiplying with the scale factor but I have not been able to find any way to get this scale factor in Flet. I can use external libraries to get the scale factor but I would prefer to use Flet since I haven't been able to find any cross platform libraries that can do the job.
Suggest a solution
Add the os scale factor as a variable in Flet if possible.
Screenshots
Additional details
No response