位图太大AS3位图、太大

由网友(偷心刺客)分享简介:在AS3,我加载从ZIP文件(通过的ByteArray nochump的拉链库加载器)为PNG。巴布亚新几内亚可高达45K像素宽,但只有120高。这在闪存中的问题,为图像只能是〜8000像素宽。一种可能的解决办法是将图像以某种方式分裂成6列。这可能将需要在ByteArray的状态做,因为限制是位图和装载机。请问这甚至可...

在AS3,我加载从ZIP文件(通过的ByteArray nochump的拉链库加载器)为PNG。巴布亚新几内亚可高达45K像素宽,但只有120高。这在闪存中的问题,为图像只能是〜8000像素宽。一种可能的解决办法是将图像以某种方式分裂成6列。这可能将需要在ByteArray的状态做,因为限制是位图和装载机。请问这甚至可能吗?

In AS3, I am loading a png from a zip file (nochump's zip library through ByteArray to Loader). The png can be up to 45k pixels wide but only 120 tall. This creates a problem in flash, as images can only be ~8000 pixels wide. A possible solution would be to split the images into 6 columns somehow. This would probably need to be done in the ByteArray state, because the limitation is in Bitmap and Loader. Would this even be possible?

推荐答案

我相信你应该使用炼金术脱code如此大的文件,并把它放在一个 Byterray 。它看起来像它已经做了JPEG,PNG不应该有很大的不同!

I believe you should use Alchemy to decode such a large file and put it in a Byterray. It looks like it has been done for JPEG, PNG shouldn't be very different!

http://segfaultlabs.com/devlogs/alchem​​y-loading-large- JPEG格式图片

阅读全文

相关推荐

最新文章