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.

Try ByteScout Image To Video SDK today: Get 60 Day Free Trial or sign up for Web API

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(); } } } }

Try ByteScout Image To Video SDK today: 60 Day Free Trial (on-premise version) or sign up for Web API (on demand version)

VIDEO

ON-PREMISE VERSION

Get 60 Day Free Trial or Visit ByteScout Image To Video SDK page

Explore ByteScout Image To Video SDK documentation

WEB API

Sign Up for free Web API key

Explore Web API Documentation

Tutorials:

prev
next