Today you are going to learn how to 70 advanced 3d transition effects in C#. ByteScout Image To Video SDK was made to help with 70 advanced 3d 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.
C#, code samples for C#, developers help to speed up the application development and writing a code when using ByteScout Image To Video SDK. In order to implement this functionality, you should copy and paste code below into your app using code editor. Then compile and run your application. Use of ByteScout Image To Video SDK in C# is also explained in the documentation included along with the product.
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)
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 70 advanced 3D 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 70 advanced 3D transition effects from 70 to 140
for (int i = 67; i < 140; 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();
}
}
}
}
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
Get Your API Key
Explore Web API Docs
Explore Web API Samples
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
Get Your API Key
Explore Web API Docs
Explore Web API Samples