Image output

is there any way to create an image (jpg/png/bmp) from flash?