Mac OS X / Cocoa - disable WebView image scaling o

2019-09-07 12:43发布

I am using a WebView control in my Cocoa/OS X application to display screenshots. I'm just loading the JPEG image directly to a WebView as a document. It works OK with a non-Retina screen, but in HiDPI mode the WebView is automatically scaling the loaded image up, and that's not what I need. I just need to display it as is, pixel-by-pixel. I've spent half of the day searching the web regarding how to change that WebView behavior easily and for some reason had no success.

0条回答
登录 后发表回答