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

ByteScout Image To Video SDK – C# – Background Color

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

background color in C# using ByteScout Image To Video SDK

Make background color in C#

:

Tutorial on how to do background color in C#

We’ve created and updating regularly our sample code library so you may quickly learn background color and the step-by-step process in C#. ByteScout Image To Video SDK helps with background color 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 color. This C# sample code should be copied and pasted into your application’s code editor. Then just compile and run it to see how it works. Enjoy writing a code with ready-to-use sample C# codes to implement background color using ByteScout Image To Video SDK.

ByteScout Image To Video SDK is available as free trial. You may get it from our website along with all other source code samples for C# applications.

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; using System.Drawing; namespace BackgroundColor { 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(); Color CC = new Color(); CC = Color.Transparent; // Activate the component converter.RegistrationName = "demo"; converter.RegistrationKey = "demo"; // Set movie background color converter.SetBackgroundColorRGB(0, 255, 128); // 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("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