---
title: "Save image C#: Save JPG, TIFF, BMP, and PNG in C# | Nutrient .NET SDK"
canonical_url: "https://www.nutrient.io/guides/dotnet/save-a-file/imaging-bitmap/"
md_url: "https://www.nutrient.io/guides/dotnet/save-a-file/imaging-bitmap.md"
last_updated: "2026-06-15T15:43:43.655Z"
description: "Explore .NET imaging solutions, covering bitmap, vector, byte array, FTP, and remote URL conversions for efficient file management."
---

# Save images in C#

### Overview

[Overview](https://www.nutrient.io/guides/dotnet/save-a-file/imaging.md)

### To Bitmap

[To Bitmap](https://www.nutrient.io/guides/dotnet/save-a-file/imaging-bitmap.md)

### To Vector

[To Vector](https://www.nutrient.io/guides/dotnet/save-a-file/imaging-vector.md)

### To Byte Array

[To Byte Array](https://www.nutrient.io/guides/dotnet/save-a-file/imaging-byte-array.md)

### To FTP

[To FTP](https://www.nutrient.io/guides/dotnet/save-a-file/imaging-ftp.md)

### To Remote URL

[To Remote URL](https://www.nutrient.io/guides/dotnet/save-a-file/imaging-remote-url.md)

To save a previously loaded GdPicture image to BMP, use the [`SaveAsBMP` method](https://www.nutrient.io/api/gdpicture/GdPicture.NET.14~GdPicture14.GdPictureImaging~SaveAsBMP.html) of the [`GdPictureImaging` class](https://www.nutrient.io/api/gdpicture/GdPicture.NET.14~GdPicture14.GdPictureImaging.html).

Common parameters:

- `imageID` — The GdPicture image identifier.

- `FilePath` — Output path. If the file exists, it’s overwritten.

Optional parameter:

- `UseRLE` — `true` to use RLE compression (available only for 8 bpp BMP images).

`SaveAsBMP` returns a `GdPictureStatus`, which should be checked.

When you no longer need an image resource, release it with the [`ReleaseGdPictureImage` method](https://www.nutrient.io/api/gdpicture/GdPicture.NET.14~GdPicture14.GdPictureImaging~ReleaseGdPictureImage.html).

The following example saves a previously loaded JPG image to BMP format:

### C#

```csharp

using GdPicture14;
using System;

using GdPictureImaging gdPictureImaging = new GdPictureImaging();

// Create a GdPicture image from a JPG file.
int imageID = gdPictureImaging.CreateGdPictureImageFromFile(@"C:\temp\source.jpg");
if (imageID == 0)
{
    Console.WriteLine($"CreateGdPictureImageFromFile failed: {gdPictureImaging.GetStat()}");
    return;
}

// Save as BMP.
GdPictureStatus status = gdPictureImaging.SaveAsBMP(imageID, @"C:\temp\output.bmp");
if (status!= GdPictureStatus.OK)
{
    Console.WriteLine($"SaveAsBMP failed: {status}");
}

gdPictureImaging.ReleaseGdPictureImage(imageID);

```

### VB.NET

```vb

Imports GdPicture14

Using gdPictureImaging As New GdPictureImaging()
    ' Create a GdPicture image from a JPG file.
    Dim imageID As Integer = gdPictureImaging.CreateGdPictureImageFromFile("C:\temp\source.jpg")
    If imageID = 0 Then
        Console.WriteLine($"CreateGdPictureImageFromFile failed: {gdPictureImaging.GetStat()}")
        Return
    End If

    ' Save as BMP.
    Dim status As GdPictureStatus = gdPictureImaging.SaveAsBMP(imageID, "C:\temp\output.bmp")
    If status <> GdPictureStatus.OK Then
        Console.WriteLine($"SaveAsBMP failed: {status}")
    End If

    gdPictureImaging.ReleaseGdPictureImage(imageID)
End Using

```
---

## Related pages

- [Save a file from the annotation manager in C#](/guides/dotnet/save-a-file/annotation-to-jpg.md)
- [Save a file from the annotation manager in C#](/guides/dotnet/save-a-file/annotation-to-pdf.md)
- [Save a file from the annotation manager in C#](/guides/dotnet/save-a-file/annotation-to-tiff.md)
- [Save a file from the annotation manager in C#](/guides/dotnet/save-a-file/annotation-to-xmp.md)
- [Save images in C#](/guides/dotnet/save-a-file/imaging-byte-array.md)
- [Save images in C#](/guides/dotnet/save-a-file/imaging-ftp.md)
- [Save images in C#](/guides/dotnet/save-a-file/imaging-remote-url.md)
- [Save images in C#](/guides/dotnet/save-a-file/imaging-vector.md)
- [Save images and PDF files in C#](/guides/dotnet/save-a-file.md)
- [Save images in C#](/guides/dotnet/save-a-file/imaging.md)
- [Save PDF files in C#](/guides/dotnet/save-a-file/pdf-incremental-to-stream.md)
- [Save PDF files in C#](/guides/dotnet/save-a-file/pdf-incremental.md)
- [Save PDF files in C#](/guides/dotnet/save-a-file/pdf-local-storage.md)
- [Save PDF files in C#](/guides/dotnet/save-a-file/pdf.md)
- [Save PDF files in C#](/guides/dotnet/save-a-file/pdf-stream.md)

