开发者

Render each frame as a single image

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.


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.


there is an export function with flash too, so if you animate or draw your objects to stage you can export it as in image sequence (file->export->export movie-> jpeg, GIF, png etc).

0

上一篇:

下一篇:

精彩评论

暂无评论...
验证码 换一张
取 消

最新问答

问答排行榜