Convert image file formats in C# and VB.NET
With GemBox.Imaging, you can convert image file formats using C# or VB.NET applications. This component supports conversion to and from the following image formats:
- JPEG
- PNG
- TIFF
- GIF
The following example shows how you can easily load a JPG image and convert it to a PNG file.

using System;
using GemBox.Imaging;
class Program
{
static void Main()
{
// If using the Professional version, put your serial key below.
ComponentInfo.SetLicense("FREE-LIMITED-KEY");
using (var image = Image.Load("%InputFileName%"))
{
// Saving image to selected image file format
image.Save("Converting.%OutputFileType%");
}
}
}
Imports System
Imports GemBox.Imaging
Module Program
Sub Main()
' If using the Professional version, put your serial key below.
ComponentInfo.SetLicense("FREE-LIMITED-KEY")
Using image As Image = Image.Load("%InputFileName%")
' Saving image to selected image file format
image.Save("Converting.%OutputFileType%")
End Using
End Sub
End Module
See also
Next steps
Published: September 14, 2022 | Modified: December 19, 2022 | Author: Ercan Görgülü