编程技巧,以优化的Flash AIR的iOS视网膜显示器? [英] Programming tips to optimize Flash AIR for iOS retina displays?

查看:135
本文介绍了编程技巧,以优化的Flash AIR的iOS视网膜显示器?的处理方法,对大家解决问题具有一定的参考价值,需要的朋友们下面随着小编来一起学习吧!

问题描述

有什么事情可以做,以优化现有的主权财富基金的视网膜显示器的迎面而来的浪潮?或者,反正是有prepare视网膜显示器创建新的主权财富基金是什么时候?从我所看到和阅读,主权财富基金的外观pretty的差。

Is there anything that can be done to optimize existing SWFs for the oncoming wave of retina displays? Or, is there anyway to prepare for retina displays when creating new SWFs? From what I've seen and read, the SWFs look pretty poor.

推荐答案

的Flex 4.6支持<一href="http://help.adobe.com/en_US/FlashPlatform/reference/actionscript/3/spark/utils/MultiDPIBitmapSource.html">MultiDPIBitmapSource这将提供一种方法来提供位图对于不同的画面密度进行优化。你可以阅读了深入过此链接。

Flex 4.6 supports MultiDPIBitmapSource which would provide a way to supply bitmap optimized for different screen density. You may read an in-depth discussion over this link.

在一般情况下,如果你的位图作为图标,标识显示,在动画或改造仅限于移动,平移和裁剪,和你的位图它不进行缩放,你会达到最佳的显示效果和下降的表现。矢量资产的业绩较少predictable相比,位图的这种用法。

In general, if your bitmaps are used as icon, logo display, where animation or transformation are limited to moving, panning and clipping, and your bitmap it is not scaled, you would achieve optimal display result and descent performance. Vector assets' performance is less predictable compared to bitmap for this usage.

不过,位图是不是银弹所有的解决方案。他们将尽快为您涉及任何旋转,扭曲或缩放(放大和缩小)产生不利影响的表现,这是因为系统将不得不做很多计算搬迁的每个像素,这是很多更复杂相比,矢量

However, bitmaps are not silver bullets to all solutions. They would adversely impact performance as soon as you involve any rotation, distortion or scaling (zoom in and out), this is because the system would have to do a lot more calculation to relocate every pixels, which is a lot more involved compared to vectors.

的Stage3D也值得探讨,但如果你是使用主要是2D,明智地MultiDPIBitmapSource之间,选择矢量图形可能是一个更简单的解决方案。

Stage3D is also worth looking into, but if you are usage is primarily 2D, wisely choose between MultiDPIBitmapSource and vector graphics could be a much simpler solution.

这篇关于编程技巧,以优化的Flash AIR的iOS视网膜显示器?的文章就介绍到这了,希望我们推荐的答案对大家有所帮助,也希望大家多多支持IT屋!

查看全文
登录 关闭
扫码关注1秒登录
发送“验证码”获取 | 15天全站免登陆