只是好奇,可以闪存每个帧并将其导出为图像? 在我的情况下,我想使用blitting为flashdevelop项目创建精灵图像。 当然,我知道有一个解决方案。 就像将每个形状复制并粘贴到像Photoshop这样的图像编辑器中,然后将它们转换为PNG的形状。 但我只是看到是否有更简单的方法。
Just curious, can flash take each frame and export it out as a image ? In my case, I want to create sprite images for a flashdevelop project using blitting. Of course I know there is a solution for this. like copy and paste each shape into a image editor such as photoshop and turn them into png's. But I am just seeing if there is a simpler means of doing so.
最满意答案
检查BitmapData.draw() 。 您可以侦听帧事件并以编程方式从Flash中提取位图(将舞台绘制到位图上,起泡,漂洗,重复)。 将其与PNG编码器结合使用,您可以非常轻松地自动完成整个过程。
Check out BitmapData.draw(). You can listen to frame events and programmatically spit out bitmaps from within Flash (draw the stage onto a bitmap, lather, rinse, repeat). Combine this with a PNG encoder and you can automate the entire process very easily.
更多推荐
发布评论