Getting started with GemBox.Imaging
GemBox.Imaging is a .NET library that enables you to read, convert, and transform image files (PNG, JPEG, and GIF) from .NET applications.
Requirements
GemBox.Imaging requires only .NET. It supports a wide range of .NET versions, as listed below:
.NET 6.0+ (Windows only)
.NET Standard 2.0+ (Android, iOS, Linux, macOS, Windows)
.NET Framework 4.6.2+ (Windows only)
Installation
Before you can use GemBox.Imaging, you need to install it in your project. The best way is by adding a GemBox.Imaging NuGet package via the NuGet Package Manager in Visual Studio.
To install the package, follow the steps listed below. However, please note that this guide assumes you have already set up a Visual Studio project. If you haven't done that yet, you can refer to the official tutorial for guidance.
- Right-click on the project's solution in the Solution Explorer and select 'Manage NuGet Packages for Solution'.

- On the newly opened view, click the 'Browse' tab and search for GemBox.Imaging. Once found, click on 'Install'.

- That is it. Once the installation finishes, you will be able to use the library in your code.
As an alternative, you can open the NuGet Package Manager Console (Tools -> NuGet Package Manager -> Package Manager Console) and run the following command:
Install-Package GemBox.ImagingWe also provide Windows setup.
Usage
Once you have installed GemBox.Imaging, all you have to do is add the using directive and make sure you call the ComponentInfo.SetLicense method before using any member of the library. We suggest putting the call at the beginning of the Main() method.
The ComponentInfo.SetLicense requires a license key as a parameter. If you are using the library in the Free mode, use "FREE-LIMITED-KEY" as a license key, and if you have purchased a Professional license, use the key you got in your email after the purchase. You can read more about GemBox.Imaging's working modes on the Evaluation and Licensing page.
After that, you can write your application code for working with images, like the code below. It shows how to load an Image, resize it, and then save it in a selected format.
Click the 'Run Example' button to run the code and download the resulting file. You can change the input picture by selecting it from the 'Input file name' dropdown control, or change the output format by selecting a corresponding file type from the 'Output file type' dropdown control. You can also upload your own image by dropping it on the 'Upload your file' area.
using GemBox.Imaging;
// If using the Professional version, put your serial key below.
ComponentInfo.SetLicense("FREE-LIMITED-KEY");
using (var image = Image.Load("FragonardReader.jpg"))
{
// Resizing the image.
image.Resize(64, 64);
// Saving the resized image.
image.Save("HelloWorld.jpg");
}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("FragonardReader.jpg")
' Resizing the image.
image.Resize(64, 64)
' Saving the resized image.
image.Save("HelloWorld.jpg")
End Using
End Sub
End Module
To learn more about GemBox.Imaging, check out our collection of examples listed in the menu on the left. These examples will show you how to use the library in various image-processing tasks and platforms. Additionally, for detailed information on the API, head to our documentation pages. This resource offers a comprehensive API reference, explaining each method and property available within the library.
AI Coding
CLI coding agents such as GitHub Copilot, Claude Code, and OpenAI Codex can write valid GemBox code when enabled with our gembox-skill.
