The sample source code below will teach you how to add image from buffer in VB.NET. ByteScout Image To Video SDK is the software development kit that can take a set of images and generate video slide show from them. Includes built-in support for 100+ of 2-D and 3-D slide transitions effects. Supports output in WMV, AVI, WEBM video formats. It can add image from buffer in VB.NET.
This code snippet below for ByteScout Image To Video SDK works best when you need to quickly add image from buffer in your VB.NET application. Follow the instructions from the scratch to work and copy the VB.NET code. You can use these VB.NET sample examples in one or many applications.
Free trial version of ByteScout Image To Video SDK is available on our website. Documentation and source code samples are included.
On-demand (REST Web API) version:
Web API (on-demand version)
On-premise offline SDK for Windows:
60 Day Free Trial (on-premise)
Imports BytescoutImageToVideo Module Module1 Sub Main() Try Console.WriteLine("Converting JPG slides to video, please wait...") ' Create BytescoutImageToVideoLib.ImageToVideo object instance Dim converter As ImageToVideo = New ImageToVideo() ' Activate the component converter.RegistrationName = "demo" converter.RegistrationKey = "demo" ' Add images from memory and set the duration for every slide Dim slide As Slide Dim bytes As Byte() bytes = System.IO.File.ReadAllBytes("..\..\..\..\slide1.jpg") slide = converter.AddImageFromBuffer(bytes) slide.Duration = 3000 ' 3000ms = 3s bytes = System.IO.File.ReadAllBytes("..\..\..\..\slide2.jpg") slide = converter.AddImageFromBuffer(bytes) slide.Duration = 3000 bytes = System.IO.File.ReadAllBytes("..\..\..\..\slide3.jpg") slide = converter.AddImageFromBuffer(bytes) 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) Console.WriteLine("Done. Press any key to continue...") Console.ReadKey() ' Open the result video file in default media player Process.Start("result.wmv") Catch ex As Exception Console.WriteLine("Error: " & ex.Message) Console.ReadKey() End Try End Sub End Module
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