问题
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.
来源:https://stackoverflow.com/questions/14623783/mac-os-x-cocoa-disable-webview-image-scaling-on-retina-display