:
Here you may find thousands pre-made source code pieces for easy implementation in your own programming C# projects. Conversion progress GUI in C# can be implemented with ByteScout Image To Video SDK. ByteScout Image To Video SDK is the library for conversion of images into video slideshow. Provides built-in support for more than hundred of 2D and 3D transition effects. Output formats supported are AVI,WMV and WEBM video files. You may adjust output video size, quality, framerate and add audio.
This rich sample source code in C# for ByteScout Image To Video SDK includes the number of functions and options you should do calling the API to implement conversion progress GUI. Follow the instruction from the scratch to work and copy and paste code for C# into your editor. 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.
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.
On-demand (REST Web API) version:
Web API (on-demand version)
On-premise offline SDK for Windows:
60 Day Free Trial (on-premise)
namespace ConversionProgressGUI { partial class Form1 { /// <summary> /// Required designer variable. /// </summary> private System.ComponentModel.IContainer components = null; /// <summary> /// Clean up any resources being used. /// </summary> /// <param name="disposing">true if managed resources should be disposed; otherwise, false.</param> protected override void Dispose(bool disposing) { if (disposing && (components != null)) { components.Dispose(); } base.Dispose(disposing); } #region Windows Form Designer generated code /// <summary> /// Required method for Designer support - do not modify /// the contents of this method with the code editor. /// </summary> private void InitializeComponent() { this.buttonConvert = new System.Windows.Forms.Button(); this.label1 = new System.Windows.Forms.Label(); this.progressBar1 = new System.Windows.Forms.ProgressBar(); this.SuspendLayout(); // // buttonConvert // this.buttonConvert.Location = new System.Drawing.Point(18, 57); this.buttonConvert.Name = "buttonConvert"; this.buttonConvert.Size = new System.Drawing.Size(254, 33); this.buttonConvert.TabIndex = 0; this.buttonConvert.Text = "Convert slides with conversion preview"; this.buttonConvert.UseVisualStyleBackColor = true; this.buttonConvert.Click += new System.EventHandler(this.buttonConvert_Click); // // label1 // this.label1.AutoSize = true; this.label1.Font = new System.Drawing.Font("Microsoft Sans Serif", 8.25F, System.Drawing.FontStyle.Bold, System.Drawing.GraphicsUnit.Point, ((byte) (204))); this.label1.Location = new System.Drawing.Point(15, 9); this.label1.Name = "label1"; this.label1.Size = new System.Drawing.Size(126, 13); this.label1.TabIndex = 2; this.label1.Text = "Conversion progress:"; // // progressBar1 // this.progressBar1.Location = new System.Drawing.Point(18, 28); this.progressBar1.Name = "progressBar1"; this.progressBar1.Size = new System.Drawing.Size(254, 23); this.progressBar1.TabIndex = 3; // // Form1 // this.AutoScaleDimensions = new System.Drawing.SizeF(6F, 13F); this.AutoScaleMode = System.Windows.Forms.AutoScaleMode.Font; this.ClientSize = new System.Drawing.Size(284, 102); this.Controls.Add(this.progressBar1); this.Controls.Add(this.label1); this.Controls.Add(this.buttonConvert); this.Name = "Form1"; this.StartPosition = System.Windows.Forms.FormStartPosition.CenterScreen; this.Text = "Form1"; this.ResumeLayout(false); this.PerformLayout(); } #endregion private System.Windows.Forms.Button buttonConvert; private System.Windows.Forms.Label label1; private System.Windows.Forms.ProgressBar progressBar1; } }
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
using System; using System.Windows.Forms; using BytescoutImageToVideo; namespace ConversionProgressGUI { public partial class Form1 : Form { public const int WM_APP = 0x8000; public const int WM_CONVERSION_PROGRESS = WM_APP + 1; ImageToVideo converter = new ImageToVideo(); public Form1() { InitializeComponent(); converter.RegistrationName = "demo"; converter.RegistrationKey = "demo"; } private void buttonConvert_Click(object sender, EventArgs e) { if (!converter.IsRunning) { // Add images and set the duration for every slide 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 = 400; converter.OutputHeight = 300; // Set output video file name converter.OutputVideoFileName = "result.wmv"; // Set progress notification target window converter.SetProgressNotifyWindow(Handle.ToInt32(), WM_CONVERSION_PROGRESS, 0); // Run the conversion converter.Run(); } } protected override void WndProc(ref Message m) { if (m.HWnd == Handle && m.Msg == WM_CONVERSION_PROGRESS) { progressBar1.Value = m.WParam.ToInt32(); } base.WndProc(ref m); } } }
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
using System; using System.Windows.Forms; namespace ConversionProgressGUI { static class Program { /// <summary> /// The main entry point for the application. /// </summary> [STAThread] static void Main() { Application.EnableVisualStyles(); Application.SetCompatibleTextRenderingDefault(false); Application.Run(new Form1()); } } }
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