ByteScout Image To Video SDK - C# - Background Picture - ByteScout

ByteScout Image To Video SDK – C# – Background Picture

  • Home
  • /
  • Articles
  • /
  • ByteScout Image To Video SDK – C# – Background Picture

background picture in C# using ByteScout Image To Video SDK

Tutorial: how to do background picture in C#

Today we will explain the steps and algorithm of implementing background picture and how to make it work in your application. ByteScout Image To Video SDK was made to help with background picture 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.

Fast application programming interfaces of ByteScout Image To Video SDK for C# plus the instruction and the C# code below will help you quickly learn background picture. C# sample code is all you need: copy and paste the code to your C# application’s code editor, add a reference to ByteScout Image To Video SDK (if you haven’t added yet) and you are ready to go! You can use these C# sample examples in one or many applications.

Our website provides free trial version of ByteScout Image To Video SDK. It comes along with all these source code samples with the goal to help you with your C# application implementation.

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 BackgroundPicture { class Program { static void Main(string[] args) { try { Console.WriteLine("Converting JPG slides to video, please wait..."); // Create BytescoutImageToVideoLib.ImageToVideo object instance ImageToVideo converter = new ImageToVideo(); // Activate the component converter.RegistrationName = "demo"; converter.RegistrationKey = "demo"; // Set movie background picture converter.SetBackgroundPictureFileName("..\\..\\..\\..\\background.jpg"); // Add images and set slide durations Slide slide; slide = converter.AddImageFromFileName("..\\..\\..\\..\\slide1.jpg"); slide.Duration = 3000; // 3000ms = 3s slide = converter.AddImageFromFileName("..\\..\\..\\..\\slide2.jpg"); slide.Duration = 3000; slide = converter.AddImageFromFileName("..\\..\\..\\..\\slide3.jpg"); slide.Duration = 3000; // Set output video size converter.OutputWidth = 640; converter.OutputHeight = 480; // Set output video file name converter.OutputVideoFileName = "result.wmv"; // Run the conversion converter.RunAndWait(); // Release resources System.Runtime.InteropServices.Marshal.ReleaseComObject(converter); // Open the result video file in default media player Process.Start("result.wmv"); Console.WriteLine("Conversion is 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