How to convert SWF to Image in Visual Basic 6 using SWF To Video SDK - ByteScout
Announcement
Our ByteScout SDK products are sunsetting as we focus on expanding new solutions.
Learn More Open modal
Close modal
Announcement Important Update
ByteScout SDK Sunsetting Notice
Our ByteScout SDK products are sunsetting as we focus on our new & improved solutions. Thank you for being part of our journey, and we look forward to supporting you in this next chapter!

How to convert SWF to Image in Visual Basic 6 using SWF To Video SDK

  • Home
  • /
  • Articles
  • /
  • How to convert SWF to Image in Visual Basic 6 using SWF To Video SDK
The VB sample code shows how to convert SWF (flash video) to PNG (image file) using Bytescout SWF To Video SDK for Visual Basic 6 developers.

The conversion SDK works as ActiveX COM object (for x86 and x64 Windows systems).

Private Sub Command1_Click()

  ' Create an instance of SWFToVideo ActiveX object
Set converter = CreateObject("BytescoutSWFToVideo.SWFToVideo")

' Set debug log

'converter.SetLogFile "log.txt"

' Register SWFToVideo
converter.RegistrationName = "demo"
converter.RegistrationKey = "demo"

' uncomment to enable PNG with transparency
' converter.RGBAMode = true ' enable BEFORE setting InputSWFFileName property

' Set input SWF file
converter.InputSWFFileName = "SlideShowWithEffects.swf"

' Set output movie dimensions

converter.OutputWidth = 640
converter.OutputHeight = 480

converter.StartFrame = 5

converter.ConvertToPNG "output.png"

Set converter = Nothing

End Sub

Sample Flash to image conversion:

 

Input SWF video – shapes.swf Output PNG image file – result.png


Tutorials:

prev
next