use*_*035 5 apache-flex air resolution
我正在尝试更改在视网膜macbook上运行的flex原生应用(空气)应用的分辨率.浏览器中的Flex应用程序会自动以160dpi平滑渲染所有内容,但如果我构建与Air安装应用程序相同的应用程序,则渲染为72dpi并且看起来不太好.我知道您可以在移动应用程序的应用程序描述符文件中设置分辨率,但这不是一个.另外,我已经尝试在WindowedApplication标签上设置applicationDPI属性,但没有运气.有任何想法吗?谢谢...
小智 0
\n\n<mx:WindowedApplication xmlns:mx=" http://www.adobe.com/2006/mxml " ; width="1019" height="680"scaleX="0.8"scaleY="0.8"applicationComplete="init()" ...>
\n\n<mx:WindowedApplication xmlns:mx=" http://www.adobe.com/2006/mxml " ; width="1019" height="680" preinitialize="initScreenSize()" applicationComplete="init()" ... >\n...\n...\n 私有函数 initScreenSize():void{\n var thisScreen:Screen = Screen.mainScreen;\n var newScaleX:Number = thisScreen.visibleBounds.width / 1019 * 0.98;\ n var newScaleY:Number = thisScreen.visibleBounds.height / 680 * 0.98;\n var newScale:Number = Math.min(newScaleX,newScaleY,1);\n this.scaleX = newScale;\n this.scaleY = newScale; \n this.height = this.height * newScale;\n this.width = this.width * newScale;\n }
\n\n根据用户\xe2\x80\x99s 分辨率缩放应用程序。这里\xe2\x80\x99是代码:
\n| 归档时间: |
|
| 查看次数: |
955 次 |
| 最近记录: |