Flash 对它可以处理的图像分辨率有限制吗?
每当我尝试处理 5184 × 3456 尺寸的图像时,我都会收到:ArgumentError: Error #2015: Invalid BitmapData.
错误,直到我的朋友没有告诉我 Flash 有限制,但他不知道到底是什么,我在官方文档页面上找不到任何内容。
有谁知道这是一回事吗?也许有 Adobe 页面的链接?
I kept on getting: ArgumentError: Error #2015: Invalid BitmapData.
error whenever I tried to handle image of 5184 × 3456 dimensions, until I wasn't told by my friend that there is a limit in Flash, but he didn't know what was it exactly and I can't find anything on official doc pages.
Does any one know what it's all about? Have a link to Adobe page maybe?
如果你对这篇内容有疑问,欢迎到本站社区发帖提问 参与讨论,获取更多帮助,或者扫码二维码加入 Web 技术交流群。
绑定邮箱获取回复消息
由于您还没有绑定你的真实邮箱,如果其他用户或者作者回复了您的评论,将不能在第一时间通知您!
发布评论
评论(3)
是的,例如此处来自 adobe 知识网站的 Flash Player 大小限制的说明10.
Yes for example here from adobe knowledge site a description of the size limit for Flash Player 10.
在文档 (http://help.adobe.com/en_US/FlashPlatform/reference/actionscript/3/flash/display/BitmapData.html) 中,它表示:
在 AIR 1.5 和 Flash Player 10 中,BitmapData 对象的最大大小宽度或高度为 8,191 像素,总像素数不能超过 16,777,215 像素。 (因此,如果 BitmapData 对象的宽度为 8,191 像素,则高度只能为 2,048 像素。)在 Flash Player 9 及更早版本和 AIR 1.1 及更早版本中,高度限制为 2,880 像素,宽度限制为 2,880 像素。
所以你的 5184 × 3456 太多了 = 17.915.904 像素
In the docs (http://help.adobe.com/en_US/FlashPlatform/reference/actionscript/3/flash/display/BitmapData.html) it says:
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.
so your 5184 × 3456 is too much = 17.915.904 pixels
另外,此页面可能会有所帮助:
http://www.bit-101.com/ blog/?p=1426
注意:Flash Player 9 中的限制是 2048 像素。宽度为 2048 像素。对于高度。
Also, this page might be helpful:
http://www.bit-101.com/blog/?p=1426
Note: the limit in Flash Player 9 is 2048 px. for width, 2048 px. for height.