This example demonstrates how to use SWF To Image in Visual C# application to convert SWF into BMP image

Download source code for this sample: swftoimage_visual_c_sharp.zip (17 KB)

Screenshot of Sample.bmp image produced by the sample application from Sample.swf flash movie:

screenshot of output BMP image

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)

Visual C# code (Program.cs):

using System;
using System.Collections.Generic;
using System.Text;
using SWFToImage;
using System.Diagnostics;

namespace HelloWorld
{
class Program
{
static void Main(string[] args)
{
SWFToImage.SWFToImageObject obj = new SWFToImage.SWFToImageObject();

obj.InitLibrary (“demo”, “demo”);

obj.InputSWFFileName = “sample.swf”; // input SWF file
obj.Execute();
obj.SaveToFile(“sample.bmp”); // save to bmp file

Process.Start(“sample.bmp”); // open generated BMP file in the default viewer
}
}
}

Download source code for this sample: swftoimage_visual_c_sharp.zip (17 KB)