We’ve created and updating regularly our sample code library so you may quickly learn SWF to PNG and the step-by-step process in VB.NET. ByteScout SWF To Video SDK was made to help with SWF to PNG in VB.NET. ByteScout SWF To Video SDK is the SDK that is capable of converting SWF macromedia files into WMV and AVI video. Supports dynamic flash movies, can transmit variable values. Options to change output video size, framerate, quality are available.
You will save a lot of time on writing and testing code as you may just take the code below and use it in your application. VB.NET sample code is all you need: copy and paste the code to your VB.NET application’s code editor, add a reference to ByteScout SWF To Video SDK (if you haven’t added yet) and you are ready to go! Test VB.NET sample code examples whether they respond your needs and requirements for the project.
ByteScout SWF To Video SDK free trial version is available for download from our website. Free trial also includes programming tutorials along with source code samples.
' x64 IMPORTANT NOTE: set CPU to x86 to build in x86 mode Imports System.Diagnostics Imports BytescoutSWFToVideo Class Program Friend Shared Sub Main(args As String()) ' Create an instance of SWFToVideo ActiveX object Dim z As New SWFToVideo() Dim converter As New SWFToVideo() ' Set debug log 'converter.SetLogFile("log.txt"); ' Register SWFToVideo converter.RegistrationName = "demo" converter.RegistrationKey = "demo" ' Enable trasparency - set BEFORE setting input SWF filename converter.RGBAMode = True ' Set input SWF file converter.InputSWFFileName = "Shapes.swf" ' Select 20th frame converter.StartFrame = 20 converter.StopFrame = 20 ' Run conversion converter.ConvertToPNG("result.png") ' release resources System.Runtime.InteropServices.Marshal.ReleaseComObject(converter) converter = Nothing ' Open the result in default application Process.Start("result.png") End Sub End Class