---
title: "Load Multiframe Image"
canonical: https://www.graphicsmill.com/samples/Codecs/LoadingAndSavingImages/LoadMultiframeImage_cs
product: "Graphics Mill"
source: "Codecs/LoadingAndSavingImages/LoadMultiframeImage.cs"
---

# Load Multiframe Image

Loads multiframe image.

## Instruction

Write a C# program that reads a multi-frame TIFF file and saves each frame as a separate JPEG image.

## Usings

```csharp
using Aurigma.GraphicsMill.Codecs;
```

## Code Snippet

```csharp
using (var reader = new TiffReader("TIFFMultiframe.tif"))
{
    for (int i = 0; i < reader.Frames.Count; i++)
    {
        using (var bitmap = reader.Frames[i].GetBitmap())
        {
            bitmap.Save("LoadMultiframe_" + i + ".jpg");
        }
    }
}
```

## Explanation

Below is a C# code sample that reads each frame from a multi-frame TIFF image and saves it as a separate JPEG file:

The code demonstrates how to extract individual frames from a TIFF image and save them as separate JPEG files.

## Tags

- [Filesystem](<https://www.graphicsmill.com/samples/tags/filesystem_md>): Loading and saving images from files
- [JPG](<https://www.graphicsmill.com/samples/tags/jpg_md>): Reading and writing JPEG images
- [Multiple frames](<https://www.graphicsmill.com/samples/tags/multi-frame_md>): Handling multi-frame image formats
- [Read](<https://www.graphicsmill.com/samples/tags/read_md>): Reading images with codecs
- [TIFF](<https://www.graphicsmill.com/samples/tags/tiff_md>): Reading and writing TIFF images
- [Write](<https://www.graphicsmill.com/samples/tags/write_md>): Writing images with codecs

## Input

- [TIFFMultiframe.tif](<https://www.graphicsmill.com/samples/Codecs/compiled/Debug/TIFFMultiframe_tif>) (download)

## Output

- [LoadMultiframe\_0.jpg](<https://www.graphicsmill.com/samples/Codecs/compiled/Debug/LoadMultiframe_0_jpg>) (preview)
- [LoadMultiframe\_1.jpg](<https://www.graphicsmill.com/samples/Codecs/compiled/Debug/LoadMultiframe_1_jpg>) (preview)

## Used APIs

- [Aurigma.GraphicsMill.Codecs.Frame.GetBitmap](<https://www.graphicsmill.com/docs/gm/M_Aurigma_GraphicsMill_Codecs_Frame_GetBitmap.htm.md>)
- [Aurigma.GraphicsMill.Codecs.FrameCollectionBase.Count](<https://www.graphicsmill.com/docs/gm/P_Aurigma_GraphicsMill_Codecs_FrameCollectionBase_Count.htm.md>)
- [Aurigma.GraphicsMill.Codecs.TiffReader](<https://www.graphicsmill.com/docs/gm/T_Aurigma_GraphicsMill_Codecs_TiffReader.htm.md>)
- [Aurigma.GraphicsMill.Codecs.TiffReader.Frames](<https://www.graphicsmill.com/docs/gm/P_Aurigma_GraphicsMill_Codecs_TiffReader_Frames.htm.md>)
