我在数据库中存储了一些相当大的 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 - 加载器不会加载大图像,我们在Stack Overflow上找到一个类似的问题: https://stackoverflow.com/questions/6297731/