---
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/"
md_url: "https://www.nutrient.io/guides/dotnet/save-a-file/imaging.md"
last_updated: "2026-05-21T17:12:02.215Z"
description: "Explore how to save images in various formats with .NET, including bitmap, vector, byte array, FTP, and remote URLs. Ideal for developers!"
---

# 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 GdPicture image to a file, use one of the `SaveAs...` methods of the [`GdPictureImaging` class](https://www.nutrient.io/api/gdpicture/GdPicture.NET.14~GdPicture14.GdPictureImaging.html).

For example, the [`SaveAsPNG` method](https://www.nutrient.io/api/gdpicture/GdPicture.NET.14~GdPicture14.GdPictureImaging~SaveAsPNG.html) saves a GdPicture image to a PNG file. Refer to [supported file types](https://www.nutrient.io/guides/dotnet/about/file-type-support.md) to see available output formats.

Most `SaveAs...` methods use:

- `imageID` — The GdPicture image identifier.

- `FilePath` — The output file path.

- Optional format-specific parameters (for quality/compression/settings).

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 PNG 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 the GdPicture image as a PNG file.
GdPictureStatus status = gdPictureImaging.SaveAsPNG(imageID, @"C:\temp\output.png");
if (status!= GdPictureStatus.OK)
{
    Console.WriteLine($"SaveAsPNG 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 the GdPicture image as a PNG file.
    Dim status As GdPictureStatus = gdPictureImaging.SaveAsPNG(imageID, "C:\temp\output.png")
    If status <> GdPictureStatus.OK Then
        Console.WriteLine($"SaveAsPNG 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-pdf.md)
- [Save a file from the annotation manager in C#](/guides/dotnet/save-a-file/annotation-to-jpg.md)
- [Save images in C#](/guides/dotnet/save-a-file/imaging-bitmap.md)
- [Save a file from the annotation manager in C#](/guides/dotnet/save-a-file/annotation-to-tiff.md)
- [Save images in C#](/guides/dotnet/save-a-file/imaging-vector.md)
- [Save images in C#](/guides/dotnet/save-a-file/imaging-ftp.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-remote-url.md)
- [Save images and PDF files in C#](/guides/dotnet/save-a-file.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)
- [Save PDF files in C#](/guides/dotnet/save-a-file/pdf-incremental-to-stream.md)

