What is the mapping between DPI values and Zoom Levels (0,1,2..etc) when using the setZoomLevel()
215 views
Skip to first unread message
Charith Wijenayake
unread,
Aug 31, 2015, 2:03:24 AM8/31/15
Reply to author
Sign in to reply to author
Forward
Sign in to forward
Delete
You do not have permission to delete messages in this group
Copy link
Report message
Show original message
Either email addresses are anonymous for this group or you need the view member email addresses permission to view the original message
to CefSharp
Hi,
I am using the cefSharp library in a c# project where the chrome browser instance is used to display a web page. I need to set the zoom level of the browser depending on my system resolution (dpi value). Does anyone know the mapping between the dpi levels and the Zoom level in setZoomLevel() method? eg -:
96 DPI = 100% scaling [should this be setZoomLevel(0.0) ??]
120 DPI = 125% scaling [should this be setZoomLevel(1.0) or setZoomLevel(2.0)??]
Thank you.
Alex Maitland
unread,
Aug 31, 2015, 4:12:53 AM8/31/15
Reply to author
Sign in to reply to author
Forward
Sign in to forward
Delete
You do not have permission to delete messages in this group
Copy link
Report message
Show original message
Either email addresses are anonymous for this group or you need the view member email addresses permission to view the original message
to CefSharp
The CEF API doesn't really have much information on the subject. It only says that 0.0 is zoom rest.