flash - 加载器不会加载大图像

标签 flash apache-flex actionscript-3

我在数据库中存储了一些相当大的 PNG 图像(例如 1000x15000 像素,4.5MB)。我正在尝试使用 Loader 类加载它...我遇到的问题是当我调用 load() 时,没有任何反应。没有事件,没有错误。

我可以拍摄相同的图像并将其嵌入。只要我将高度设置为小于 8000px 就可以了。如果我将嵌入图像转换为 ByteArray 并尝试加载它,则什么也不会发生。

有什么建议吗?

最佳答案

In AIR 1.5 and Flash Player 10, the maximum size for a BitmapData object is 8,191 pixels in width or height, and the total number of pixels cannot exceed 16,777,215 pixels. (So, if a BitmapData object is 8,191 pixels wide, it can only be 2,048 pixels high.) In Flash Player 9 and earlier and AIR 1.1 and earlier, the limitation is 2,880 pixels in height and 2,880 in width.

来源:flash.display.BitmapData

关于flash - 加载器不会加载大图像,我们在Stack Overflow上找到一个类似的问题: https://stackoverflow.com/questions/6297731/

相关文章:

actionscript-3 - as3 textField vs label vs textArea

ios - System.setClipboard不适用于iOS(AS3)

java - 是否有适用于 Web 应用程序的开源图像调整大小和 uploader ?

html - 在 ActionScript 中从 data-in-uri(base64 编码的 PNG)创建图像

apache-flex - 标签 dataChange 事件未被触发

actionscript-3 - ActionScript/AIR - 在运行时确定设备配置文件?

ios - 以 KB 为单位减小 Flash 文件大小?

silverlight - 为什么没有更多(任何?) killer 级 RIA 桌面应用程序?

xml - 使用 e4X 和 Flex 3 解析 XML 时出现问题

flash - AS3 奇怪的字符串拆分错误