Reputation: 3320
Is there a application (Or way in coldfusion/VB.net) to be able to convert a swf to a image file? It needs to be ok quality and needs not to be too slow.
Upvotes: 4
Views: 3042
Reputation: 3320
http://bytescout.com/products/developer/swftoimagesdk/swftoimage.html
Example Code (using fixed preload time)
Set SWFToImage = CreateObject("SWFToImage.SWFToImageObject")
SWFToImage.InputSWFFileName = "PRELOAD1://movie_with_dynamic_data.swf"
SWFToImage.ImageOutputType = 1 ' set output image type to Jpeg (0 = BMP, 1 = JPG, 2 = GIF)
SWFToImage.Execute_Begin ' start conversion
SWFToImage.FrameIndex = 1 ' set frame index
SWFToImage.Execute_GetImage
SWFToImage.SaveToFile "movie_with_dynamic_data.jpg"
SWFToImage.Execute_End ' end conversion
Upvotes: 0