Home
We need your feedback!

SWF To Image library

SWF To Image screenshot (click to enlarge)


Subscribe to Our Bi-Monthly Newsletter (tips, new releases, specials):
 Subscribe in a reader
 PRODUCTS  |  DOWNLOAD  |  PURCHASE  |  SUPPORT  |  TESTIMONIALS   |  NEWS  | 

SWF To Image library

Download
Looking for SWF to WMV or SWF to AVI conversion? Check our SWF TO VIDEO SDK (click here to find more)

This example will demonstrate how to use SWF To Image from ASP script and convert SWF to JPEG image on the fly

Screenshot of ConvertSampleSWF.asp running and producing raster JPEG image to the browser:

JPEG image generated from sample.swf using SWF To Image library used in ConvertSampleSWF.asp script

SWF To Image library is freeware. However you are welcome to purchase 12 months tech support for it and so support development of SWF To Image library.
12 Months Tech Support via e-mail for SWF To Image library ($95 USD)

ASP script (ConvertSampleSWF.asp):

<%
Set SWFToImage = CreateObject("SWFToImage.SWFToImageObject")

SWFToImage.InputSWFFileName = Server.MapPath("sample.swf")
SWFToImage.ImageOutputType = 1 ' set output image type to Jpeg (0 = BMP, 1 = JPG, 2 = GIF)
SWFToImage.Execute

' get generated SWF as binary image
SWFImage = SWFToImage.BinaryImage
' clear the output stream
response.Clear
' set the content type to SWF

response.ContentType = "image/jpeg"

' add content type header

response.AddHeader "Content-Type", "image/jpeg"

' set the content disposition
response.AddHeader "Content-Disposition", "inline;filename=test.jpeg"

' write the binary image to the Response output stream
response.BinaryWrite SWFImage
response.End

' disconnect from library
Set SWFToImage = Nothing
%>

SWF To Image library is freeware. However you are welcome to purchase 12 months tech support for it and so support development of SWF To Image library.
12 Months Tech Support via e-mail for SWF To Image library ($95 USD)

Download
Looking for SWF to WMV or SWF to AVI conversion? Check our SWF TO VIDEO SDK (click here to find more)
See also:

HOME  |  CONTACT US

Copyright © ByteScout, 2003-2010. Privacy Statement
Microsoft®, Windows®, Windows 2000®, Windows Server®, Windows Vista®, Internet Explorer®, .NET Framework®, ActiveX®, Visual Basic®, Visual C#®, ASP®, ASP.NET®, Excel®, PowerPoint®, are either registered trademarks or trademarks of Microsoft Corporation in the United States and/or other countries. Adobe®, Flash® and Acrobat® are registered trademarks of Adobe Systems, Incorporated. Mozilla®, Firefox® and the Mozilla and Firefox Logos are registered trademarks of the Mozilla Foundation. Other product names or brandnames used herein are for identification purposes only and might be trademarks or registered trademarks of their respective companies. We disclaim any and all rights to those marks.