BitmapData 和 JpegEncoder 限制 [英] BitmapData and JpegEncoder Limitations

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

问题描述

我正在尝试使用 bitmapdata 和 jpegencoder 从闪存中保存大图像.我正在研究此过程的局限性,并注意到您只能将位图数据像素宽度和高度设置为一定数量,这可能会灵活地将 jpegencoder 质量设置为 (1-100).

I am trying to save out a large image from flash using bitmapdata and the jpegencoder. I am looking into the limitations of this process and have noticed you can only set bitmapdata pizel width and height to a certain amount and this might be flexible with what you set the jpegencoder quality to (1-100).

有谁知道这两个东西的具体限制是什么?我基本上是想看看我可以保存多大的图像(因为我需要使用为打印目的导出的图像,所以我需要尽可能高的质量).

Does anyone know what the specific limitations of these two things are? I'm basically trying to see just how large of an image I can save out (because I need to use the image exported for printing purposes, so I need it as high quality as possible).

我读过一些文章说在 fp 10 中你可以渲染到 16,000 像素之类的东西.但是我尝试了一个 3500 x 3500 的图像,但它超时了.所以不确定这是否是正确的信息.

I have read articles that say in fp 10 you can render up to something like 16,000 px. But I tried an image that is 3500 x 3500 and it timed out. So not sure if this is correct information.

推荐答案

Flash Player 9 的图像大小限制为 2880x2880,Flash 10 将此限制增加到 4096x4096.这也适用于舞台、精灵和电影剪辑.

The image size limit up to Flash Player 9 is 2880x2880, Flash 10 increased this limit to 4096x4096. This applies also for the Stage, Sprites and MovieClips.

用于 JPGEncoder 类的质量并没有绕过这个限制,因为这与 Flash 核心相关.

The quality used for the JPGEncoder class does not circumvent this limitation as this is tied to the Flash core.

这篇关于BitmapData 和 JpegEncoder 限制的文章就介绍到这了,希望我们推荐的答案对大家有所帮助,也希望大家多多支持IT屋!

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