SWFToImage的安装与使用
SWFToImage简介:
SWF To Image library is an ActiveX/NET library for converting SWF (flash) movies into BMP, JPEG, GIF image files。
主要用来转换swf文件到图片文件。
由http://www.bytescout.com提供的,参见:http://www.bytescout.com/download/download_freeware.html,
下载地址:http://www.bytescout.com/files/SWFToImage.exe
下载安装后Examples目录下有很多例子可以参考学习,例如将swf转换为jpg图片的代码:
' This example converts SWF file into JPG Set SWFToImage = CreateObject("SWFToImage.SWFToImageObject") SWFToImage.InitLibrary "demo", "demo" SWFToImage.InputSWFFileName = "sample.swf" SWFToImage.ImageOutputType = 1 ' set output image type to Jpeg (0 = BMP, 1 = JPG, 2 = GIF) SWFToImage.Execute SWFToImage.SaveToFile "sample.jpg"