SWF SlideShow Scout |
Tutorial: make
flash slideshow from JPG images using C#
and SWF SlideShow Scout library You can download the source code of this example here: swfslideshowscout_csharp.zip This page will teach how to use Visual C# and SWF SlideShow Scout library to create "Hello, World!" flash slideshow movie (.SWF) from JPG images
1)
Install SWF SlideShow
Scout
library on your computer
and run Microsoft Visual
Studio.NET
Go to New
menu and click Project...
to create new Visual
C# project
![]() The New Project Wizard will
appear. Select Windows
Application in Visual
C# Projects group:
![]() 2) Visual
C# will create a new
empty project:
![]() 3) To
use SWF SlideShow Scout
library in Visual
C# application we should
add the reference to SWF
SlideShow Scout. Select
Project
in the main menu and then select Add
Reference command:
![]() Switch to COM
tab and find SWF
SlideShow Scout library
in the list of available ActiveX/COM objects:
![]() Click Select
button to add the reference
to SWF SlideShow Scout
library and click OK:
![]() 4) Double-click on form
Form1 to create the Form1_Load procedure (this procedure
will be execute on Form1.OnLoad event):
![]() The source code editor window
will appear:
![]() 5)
The following code snippet generates simple "Hello, World!" SWF flash
movie and saves it into "c:\shapes.swf" file:
SWFSlideShowScout.SlideShow SlideShow = new SWFSlideShowScout.SlideShow();
// initialize library SlideShow.InitLibrary ("demo", "demo"); // start slide 320x240 show SlideShow.BeginSlideShow (320, 240); // slide #1, show with "stetMosaicLarge" effect, 1000
msec // slide #2, show with "stetBlur" effect, 1000 msec // slide #3, show with "stetZoomCircle" effect , 1000
msec // slide #4, show with "stetLiquid" effect, 1000 msec // slide #5, show with "stetShuttersBias" effect, 1000
msec // save to flash movie file Hint:
You can simply copy the source
code from the snippet above and paste into Visual
C# source code editor:
6)
Press F5 to
run the application (you can also use "Debug"
| "Start"
menu command) and Visual
C#.NET will run the application:
![]() The application will create "Hello,
World!" flash slideshow animation movie from JPG images (slide1.jpg,
slide2.jpg etc) and save it into "SlideShow.swf" flash file.
You can view generated flash animation using any application that can play flash movies: Internet Explorer, Mozilla Firefox or other flash compatible browser. "Hello, World!" flash slideshow movie generation examples for different programming languages will guide you step by step from the very beginning: |
|
|
||