How to read images to video conversion progress in GUI (WinForms) applications with Image To Video SDK - ByteScout
Announcement
Our ByteScout SDK products are sunsetting as we focus on expanding new solutions.
Learn More Open modal
Close modal
Announcement Important Update
ByteScout SDK Sunsetting Notice
Our ByteScout SDK products are sunsetting as we focus on our new & improved solutions. Thank you for being part of our journey, and we look forward to supporting you in this next chapter!
show modal
Introducing PDF.Co
Try PDF.co for document processing & automation via Web APIs
Learn More show modal
show modal
Introducing MuPDF
Try MuPDF.NET for advanced document processing solutions in your .NET environment
Learn More show modal

How to read images to video conversion progress in GUI (WinForms) applications with Image To Video SDK

  • Home
  • /
  • Articles
  • /
  • How to read images to video conversion progress in GUI (WinForms) applications with Image To Video SDK

Bytescout Image To Video SDK can show conversion progress in GUI (WinForms) applications during images to video conversion.

The sample codes below demonstrate how to read conversion progress in GUI (WinForms) applications when you convert JPG, PNG, BMP images to AVI or WMV video with Image To Video SDK in VB.NET or C#.

Visual Basic .NET

Partial Class Form1
''' <summary>
''' Required designer variable.
''' </summary>
Private components As System.ComponentModel.IContainer = Nothing

''' <summary>
''' Clean up any resources being used.
''' </summary>
''' <param name="disposing">true if managed resources should be disposed; otherwise, false.</param>

Protected Overloads Overrides Sub Dispose(disposing As Boolean)

If disposing AndAlso (components IsNot Nothing) Then
components.Dispose()

End If
MyBase.Dispose(disposing)
End Sub

#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 Sub InitializeComponent()
Me.buttonConvert = New System.Windows.Forms.Button()

Me.label1 = New System.Windows.Forms.Label()

Me.progressBar1 = New System.Windows.Forms.ProgressBar()

Me.SuspendLayout()
'
' buttonConvert
'
Me.buttonConvert.Location = New System.Drawing.Point(18, 67)

Me.buttonConvert.Name = "buttonConvert"
Me.buttonConvert.Size = New System.Drawing.Size(254, 23)

Me.buttonConvert.TabIndex = 0
Me.buttonConvert.Text = "Convert test.swf with conversion preview"

Me.buttonConvert.UseVisualStyleBackColor = True
AddHandler Me.buttonConvert.Click, New System.EventHandler(AddressOf Me.buttonConvert_Click)

'
' label1
'
Me.label1.AutoSize = True

Me.label1.Font = New System.Drawing.Font("Microsoft Sans Serif", 8.25F, System.Drawing.FontStyle.Bold, System.Drawing.GraphicsUnit.Point, CByte(204))

Me.label1.Location = New System.Drawing.Point(15, 9)

Me.label1.Name = "label1"
Me.label1.Size = New System.Drawing.Size(126, 13)

Me.label1.TabIndex = 2
Me.label1.Text = "Conversion progress:"

'
' progressBar1
'
Me.progressBar1.Location = New System.Drawing.Point(18, 28)

Me.progressBar1.Name = "progressBar1"
Me.progressBar1.Size = New System.Drawing.Size(254, 23)

Me.progressBar1.TabIndex = 3
'
' Form1
'

Me.AutoScaleDimensions = New System.Drawing.SizeF(6F, 13F)

Me.AutoScaleMode = System.Windows.Forms.AutoScaleMode.Font
Me.ClientSize = New System.Drawing.Size(284, 102)

Me.Controls.Add(Me.progressBar1)
Me.Controls.Add(Me.label1)

Me.Controls.Add(Me.buttonConvert)
Me.Name = "Form1"

Me.StartPosition = System.Windows.Forms.FormStartPosition.CenterScreen
Me.Text = "Form1"

Me.ResumeLayout(False)
Me.PerformLayout()

End Sub

#End Region

Private buttonConvert As System.Windows.Forms.Button
Private label1 As System.Windows.Forms.Label
Private progressBar1 As System.Windows.Forms.ProgressBar

End Class 

Visual C#

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

} 

Tutorials:

prev
next