ByteScout Image To Video SDK - C# - 60 Standard 2D Transition Effects - ByteScout

ByteScout Image To Video SDK – C# – 60 Standard 2D Transition Effects

  • Home
  • /
  • Articles
  • /
  • ByteScout Image To Video SDK – C# – 60 Standard 2D Transition Effects

60 standard 2d transition effects in C# with ByteScout Image To Video SDK

How To: tutorial on 60 standard 2d transition effects in C#

The documentation is designed to help you to implement the features on your side. ByteScout Image To Video SDK was made to help with 60 standard 2d transition effects in C#. ByteScout Image To Video SDK is the SDK that is designed to generate video slideshow with 100+ 2d and 3D transition effects. Can generate WMV, AVI, WEBM video file with adjustable quality, framerate, output video size.

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. To do 60 standard 2d transition effects in your C# project or application you may simply copy & paste the code and then run your app! C# application implementation typically includes multiple stages of the software development so even if the functionality works please test it with your data and the production environment.

ByteScout Image To Video SDK free trial version is available for download from our website. Free trial also includes programming tutorials along with source code samples.

On-demand (REST Web API) version:
 Web API (on-demand version)

On-premise offline SDK for Windows:
 60 Day Free Trial (on-premise)

Program.cs
      
using System; using System.Diagnostics; using BytescoutImageToVideo; namespace TransitionEffects { class Program { static void Main(string[] args) { try { Console.WriteLine("Converting JPG slides to video with basic 67 effects variations, please wait..."); // Create BytescoutImageToVideoLib.ImageToVideo object instance ImageToVideo converter = new ImageToVideo(); // Activate the component converter.RegistrationName = "demo"; converter.RegistrationKey = "demo"; // Enable transition effects for the first first slide converter.UseInEffectForFirstSlide = true; converter.Slides.DefaultSlideDuration = 1000; converter.Slides.DefaultSlideEffectDuration = 500; bool bChangeSlide = true; // temporary variable to change slides // now try all 67 standard transition effects from 0 (none) to 67 for(int i=0;i<67;i++){ // Add slide image, set the duration Slide slide = null; if (!bChangeSlide){ slide = converter.AddImageFromFileName("..\\..\\..\\..\\slide1.jpg"); } else{ slide = converter.AddImageFromFileName("..\\..\\..\\..\\slide2.jpg"); } bChangeSlide = !bChangeSlide; // switch to use another slide next tim slide.InEffect = (TransitionEffectType)i; // effect index } // Set output video size converter.OutputWidth = 320; converter.OutputHeight = 240; // Set output video file name converter.OutputVideoFileName = "result.wmv"; // Run the conversion converter.RunAndWait(); // Release resources System.Runtime.InteropServices.Marshal.ReleaseComObject(converter); converter = null; // Open the result video file in default media player Process.Start("result.wmv"); Console.WriteLine("Done. Press any key to continue..."); Console.ReadKey(); } catch(Exception e) { Console.WriteLine("Error: " + e.ToString()); Console.WriteLine("\nPress any key to exit."); Console.ReadKey(); } } } }

ON-PREMISE OFFLINE SDK

60 Day Free Trial or Visit ByteScout Image To Video SDK Home Page

Explore ByteScout Image To Video SDK Documentation

Explore Samples

Sign Up for ByteScout Image To Video SDK Online Training

ON-DEMAND REST WEB API

Get Your API Key

Explore Web API Docs

Explore Web API Samples

VIDEO

ON-PREMISE OFFLINE SDK

60 Day Free Trial or Visit ByteScout Image To Video SDK Home Page

Explore ByteScout Image To Video SDK Documentation

Explore Samples

Sign Up for ByteScout Image To Video SDK Online Training

ON-DEMAND REST WEB API

Get Your API Key

Explore Web API Docs

Explore Web API Samples

Tutorials:

prev
next