---
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-vector/"
md_url: "https://www.nutrient.io/guides/dotnet/save-a-file/imaging-vector.md"
last_updated: "2026-06-19T09:21:00.261Z"
description: "Discover how to save files in various formats using .NET imaging, including bitmap, vector, byte array, FTP, and remote URL techniques."
---

# 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)

A vector graphic file can be scaled without losing quality. One common vector format is SVG.

To save loaded content as SVG, use the [`SaveAsSVG` method](https://www.nutrient.io/api/gdpicture/GdPicture.NET.14.API~GdPicture14.GdPictureDocumentConverter~SaveAsSVG.html) of the [`GdPictureDocumentConverter` class](https://www.nutrient.io/api/gdpicture/GdPicture.NET.14.API~GdPicture14.GdPictureDocumentConverter.html).

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

During conversion, vector content is preserved as much as possible. If the source document has multiple pages (for example, PDF or TIFF), only the first page is converted to SVG.

To save content in SVG format, use the following example:

### C#

```csharp

using GdPicture14;
using System;

using GdPictureDocumentConverter converter = new GdPictureDocumentConverter();

// Load a PDF document.
GdPictureStatus status = converter.LoadFromFile(
    @"C:\temp\source.pdf",
    DocumentFormat.DocumentFormatPDF);

if (status!= GdPictureStatus.OK)
{
    Console.WriteLine($"LoadFromFile failed: {status}");
    return;
}

// Save as SVG.
status = converter.SaveAsSVG(@"C:\temp\output.svg");
if (status!= GdPictureStatus.OK)
{
    Console.WriteLine($"SaveAsSVG failed: {status}");
}

```

### VB.NET

```vb

Imports GdPicture14

Using converter As New GdPictureDocumentConverter()
    ' Load a PDF document.
    Dim status As GdPictureStatus = converter.LoadFromFile(
        "C:\temp\source.pdf",
        DocumentFormat.DocumentFormatPDF)

    If status <> GdPictureStatus.OK Then
        Console.WriteLine($"LoadFromFile failed: {status}")
        Return
    End If

    ' Save as SVG.
    status = converter.SaveAsSVG("C:\temp\output.svg")
    If status <> GdPictureStatus.OK Then
        Console.WriteLine($"SaveAsSVG failed: {status}")
    End If
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-tiff.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-pdf.md)
- [Save images in C#](/guides/dotnet/save-a-file/imaging-remote-url.md)
- [Save images in C#](/guides/dotnet/save-a-file/imaging-ftp.md)
- [Save images in C#](/guides/dotnet/save-a-file/imaging.md)
- [Save a file from the annotation manager in C#](/guides/dotnet/save-a-file/annotation-to-xmp.md)
- [Save PDF files in C#](/guides/dotnet/save-a-file/pdf-incremental-to-stream.md)
- [Save images and PDF files in C#](/guides/dotnet/save-a-file.md)
- [Save images in C#](/guides/dotnet/save-a-file/imaging-byte-array.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.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-stream.md)

