位图太大AS3 [英] Bitmap too big as3

查看:228
本文介绍了位图太大AS3的处理方法,对大家解决问题具有一定的参考价值,需要的朋友们下面随着小编来一起学习吧!

问题描述

在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格式图片

这篇关于位图太大AS3的文章就介绍到这了,希望我们推荐的答案对大家有所帮助,也希望大家多多支持IT屋!

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