---
title: "Read Extra Channel From TIFF"
canonical: https://www.graphicsmill.com/samples/Codecs/Tiff/ReadExtraChannelFromTiff_cs
product: "Graphics Mill"
source: "Codecs/Tiff/ReadExtraChannelFromTiff.cs"
---

# Read Extra Channel From TIFF

Reads a extra channel from a TIFF file and saves it as a new TIFF image.

## Instruction

Write a C# program that reads a TIFF image, extracts an extra channel, and saves it as a new TIFF image.

## Usings

```csharp
using Aurigma.GraphicsMill.Codecs;
```

## Code Snippet

```csharp
using (var reader = new TiffReader("CopenhagenWithExtraChannel.tif"))
{
    var bitmap = reader.Frames[0].ExtraChannels[0].GetBitmap();

    bitmap.Save("BusinessCard_ReadExtra.tif");
}
```

## Explanation

Below is a C# code sample that demonstrates how to read a TIFF image, extract an extra channel, and save it as a new TIFF image.

This code reads a TIFF image, retrieves the extra channel from the first frame, and saves the extracted bitmap to a new TIFF file.

## Tags

- [Extra Channels](<https://www.graphicsmill.com/samples/tags/extra-channels_md>): Working with TIFF extra channels
- [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

## Input

- [CopenhagenWithExtraChannel.tif](<https://www.graphicsmill.com/samples/Codecs/compiled/Debug/CopenhagenWithExtraChannel_tif>) (download)

## Output

- [BusinessCard\_ReadExtra.tif](<https://www.graphicsmill.com/samples/Codecs/compiled/Debug/BusinessCard_ReadExtra_tif>) (download)

## Used APIs

- [Aurigma.GraphicsMill.Codecs.Frame.GetBitmap](<https://www.graphicsmill.com/docs/gm/M_Aurigma_GraphicsMill_Codecs_Frame_GetBitmap.htm.md>)
- [Aurigma.GraphicsMill.Codecs.TiffFrame.ExtraChannels](<https://www.graphicsmill.com/docs/gm/P_Aurigma_GraphicsMill_Codecs_TiffFrame_ExtraChannels.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>)
