---
title: "Load a vector image (SVG) from local storage in C# .NET | Nutrient .NET SDK"
canonical_url: "https://www.nutrient.io/guides/dotnet/load-a-file/imaging/from-local-storage-svg/"
md_url: "https://www.nutrient.io/guides/dotnet/load-a-file/imaging/from-local-storage-svg.md"
last_updated: "2026-06-08T09:14:14.369Z"
description: "Load SVG vector images from local storage in C# with our step-by-step guide. Implement scalable vector graphics into your .NET projects efficiently."
---

# Load a vector image (SVG) from local storage in C#

### Image

[Image](https://www.nutrient.io/guides/dotnet/load-a-file/imaging/from-local-storage-image.md)

### Bitmap

[Bitmap](https://www.nutrient.io/guides/dotnet/load-a-file/imaging/from-local-storage-bitmap.md)

### SVG

[SVG](https://www.nutrient.io/guides/dotnet/load-a-file/imaging/from-local-storage-svg.md)

### DICOM

[DICOM](https://www.nutrient.io/guides/dotnet/load-a-file/imaging/from-local-storage-dicom.md)

### TIFF

[TIFF](https://www.nutrient.io/guides/dotnet/load-a-file/imaging/from-local-storage-tiff.md)

### More...

[More...](https://www.nutrient.io/guides/dotnet/load-a-file/imaging/from-local-storage-more.md)

SVG is a vector image format, and in `GdPictureImaging` you can load it in two ways:

- To load the SVG without vectoring functionality (rasterized), use the [`CreateGdPictureImageFromFile` method](https://www.nutrient.io/api/gdpicture/GdPicture.NET.14~GdPicture14.GdPictureImaging~CreateGdPictureImageFromFile.html).

- To load the SVG with vectoring functionality, use the [`CreateGdPictureImageFromMetaFile` method](https://www.nutrient.io/api/gdpicture/GdPicture.NET.14~GdPicture14.GdPictureImaging~CreateGdPictureImageFromMetaFile.html) (available in Windows-specific/legacy toolkit variants).

Both methods return a GdPicture image ID (`imageID`) on success. On failure, they return `0` (use `GetStat()` for the reason).

## Load an SVG without vectoring functionality

Use the [`CreateGdPictureImageFromFile` method](https://www.nutrient.io/api/gdpicture/GdPicture.NET.14~GdPicture14.GdPictureImaging~CreateGdPictureImageFromFile.html) when you want the standard image-loading path.

### C#

```csharp

using GdPicture14;
using System;

using GdPictureImaging gdpictureImaging = new GdPictureImaging();

int imageID = gdpictureImaging.CreateGdPictureImageFromFile(@"C:\temp\source.svg", false);
if (imageID == 0)
{
    Console.WriteLine($"CreateGdPictureImageFromFile failed: {gdpictureImaging.GetStat()}");
    return;
}

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()
    Dim imageID As Integer = gdpictureImaging.CreateGdPictureImageFromFile("C:\temp\source.svg", False)
    If imageID = 0 Then
        Console.WriteLine($"CreateGdPictureImageFromFile failed: {gdpictureImaging.GetStat()}")
        Return
    End If

    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

```

## Load an SVG with vectoring functionality

Use the [`CreateGdPictureImageFromMetaFile` method](https://www.nutrient.io/api/gdpicture/GdPicture.NET.14~GdPicture14.GdPictureImaging~CreateGdPictureImageFromMetaFile.html) when you want to preserve vectoring functionality and optionally control output size with `ScaleBy`.

`CreateGdPictureImageFromMetaFile` isn’t available in the current cross-platform GdPicture.API package on non-Windows targets (for example, `net8.0` and `net10.0`). It’s available in Windows-specific/legacy toolkit variants.

### C#

```csharp

using GdPicture14;
using System;

using GdPictureImaging gdpictureImaging = new GdPictureImaging();

int imageID = gdpictureImaging.CreateGdPictureImageFromMetaFile(@"C:\temp\source.svg", 2.0f);
if (imageID == 0)
{
    Console.WriteLine($"CreateGdPictureImageFromMetaFile failed: {gdpictureImaging.GetStat()}");
    return;
}

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()
    Dim imageID As Integer = gdpictureImaging.CreateGdPictureImageFromMetaFile("C:\temp\source.svg", 2.0F)
    If imageID = 0 Then
        Console.WriteLine($"CreateGdPictureImageFromMetaFile failed: {gdpictureImaging.GetStat()}")
        Return
    End If

    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

- [Load a DICOM image from a byte array in C#](/guides/dotnet/load-a-file/imaging/from-byte-array-dicom.md)
- [Load a vector image (SVG) from a byte array in C#](/guides/dotnet/load-a-file/imaging/from-byte-array-svg.md)
- [Load an image from a byte array in C#](/guides/dotnet/load-a-file/imaging/from-byte-array-image.md)
- [Load a bitmap (BMP) from local storage in C#](/guides/dotnet/load-a-file/imaging/from-local-storage-bitmap.md)
- [Load a DICOM image from local storage in C#](/guides/dotnet/load-a-file/imaging/from-local-storage-dicom.md)
- [Load a bitmap (BMP) from a byte array in C#](/guides/dotnet/load-a-file/imaging/from-byte-array-bitmap.md)
- [Load a TIFF from a byte array in C#](/guides/dotnet/load-a-file/imaging/from-byte-array-tiff.md)
- [Load images from local storage in C#](/guides/dotnet/load-a-file/imaging/from-local-storage-image.md)
- [Load images using the API in C#](/guides/dotnet/load-a-file/imaging/from-local-storage-more.md)
- [Load a TIFF from local storage in C#](/guides/dotnet/load-a-file/imaging/from-local-storage-tiff.md)
- [Load a bitmap (BMP) from a remote URL in C#](/guides/dotnet/load-a-file/imaging/from-remote-url-bitmap.md)
- [Load an image from a remote URL in C#](/guides/dotnet/load-a-file/imaging/from-remote-url-image.md)
- [Load a bitmap (BMP) from a stream in C#](/guides/dotnet/load-a-file/imaging/from-stream-bitmap.md)
- [Load an image from a stream in C#](/guides/dotnet/load-a-file/imaging/from-stream-image.md)
- [Load a DICOM image from a remote URL in C#](/guides/dotnet/load-a-file/imaging/from-remote-url-dicom.md)
- [Load a vector image (SVG) from a remote URL in C#](/guides/dotnet/load-a-file/imaging/from-remote-url-svg.md)
- [Load a DICOM image from a stream in C#](/guides/dotnet/load-a-file/imaging/from-stream-dicom.md)
- [Load a TIFF from a remote URL in C#](/guides/dotnet/load-a-file/imaging/from-remote-url-tiff.md)
- [Load a vector image (SVG) from a stream in C#](/guides/dotnet/load-a-file/imaging/from-stream-svg.md)
- [Load a TIFF from a stream in C#](/guides/dotnet/load-a-file/imaging/from-stream-tiff.md)

