Find centralized, trusted content and collaborate around the technologies you use most.
Teams
Q&A for work
Connect and share knowledge within a single location that is structured and easy to search.
我正在使用ImageSnapshot.captureImage(canvas, 0, jPEGEncoder)将绘图画布捕获到位图,但我希望生成的 jpeg 比画布本身大得多。
ImageSnapshot.captureImage(canvas, 0, jPEGEncoder)
例如,画布是 100x400,但我希望画布的结果图像是 200x800。我无法将画布放大/缩放到这个大小,因为它会弄乱 UI。
scaleLimited:Boolean (default = true) — The maximum width or height of a bitmap in Flash is 2880 pixels- 如果 scaleLimited 设置为 true,则分辨率将按比例降低以适应 2880 像素,否则,如果 scaleLimited 为 false,则将拍摄较小的快照窗口并将其拼接在一起以捕获更大的图像。默认值为真。
The maximum width or height of a bitmap in Flash is 2880 pixels
信息网站