Mac OS X / Cocoa - disable WebView image scaling on Retina display

ⅰ亾dé卋堺 提交于 2019-12-24 21:18:11

问题


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

易学教程内所有资源均来自网络或用户发布的内容,如有违反法律规定的内容欢迎反馈
该文章没有解决你所遇到的问题?点击提问,说说你的问题,让更多的人一起探讨吧!