Today you are going to learn how to SWF to PNG with transparency in VB.NET. ByteScout SWF To Video SDK was made to help with SWF to PNG with transparency in VB.NET. ByteScout SWF To Video SDK is the library that can take SWF (Flash Macromedia) files and convert into WMV or AVI video with sound. Dynamic flash movie scenes, variables, actionscripts are supported and you also may adjust output video size, framerate and quality.
VB.NET, code samples for VB.NET, developers help to speed up the application development and writing a code when using ByteScout SWF To Video SDK. Follow the instruction from the scratch to work and copy and paste code for VB.NET into your editor. Enhanced documentation and tutorials are available along with installed ByteScout SWF To Video SDK if you’d like to dive deeper into the topic and the details of the API.
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. WHY? Because flash is not supported on x64 platform currently at all 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 = "circles.swf" ' Select 20th frame converter.StartFrame = 20 converter.StopFrame = 20 ' Run conversion converter.ConvertToPNG("result.png") ' Open the result in default application Process.Start("result.png") End Sub End Class