---
title: "ImageReader Class"
canonical: https://www.graphicsmill.com/docs/gm/T_Aurigma_GraphicsMill_Codecs_ImageReader.htm
archived: false
applies_to:
  - product: "Graphics Mill"
    versions: ["12.1", "6.x-12.x (may differ)"]
    entity_id: "https://www.graphicsmill.com/#software-application"
---

# ImageReader Class

**Applies to:** Graphics Mill 12.1, 6.x-12.x (may differ)
 
Represents a base class for all image readers.
 
**Namespace:** [Aurigma.GraphicsMill.Codecs](https://www.graphicsmill.com/docs/gm/N_Aurigma_GraphicsMill_Codecs.htm.md)
 **Assembly:** Aurigma.GraphicsMill (in Aurigma.GraphicsMill.dll)
 
## Syntax
  
```csharp
public abstract class ImageReader : PipelineElement, IImageParams
```
 
## Remarks
  
This class is derived by all image readers. It provides the following base functionality:
 
- Creating a reader on a file or stream with appropriate overload of [Create()](https://www.graphicsmill.com/docs/gm/O_T_Aurigma_GraphicsMill_Codecs_ImageReader_Create.htm.md) method. To check whether the reader is opened, use [IsOpened](https://www.graphicsmill.com/docs/gm/P_Aurigma_GraphicsMill_Codecs_ImageReader_IsOpened.htm.md) property.
- Retrieving frames via the [Frames](https://www.graphicsmill.com/docs/gm/P_Aurigma_GraphicsMill_Codecs_ImageReader_Frames.htm.md) property.
- Recognizing format of a file via the [RecognizeFormat()](https://www.graphicsmill.com/docs/gm/O_T_Aurigma_GraphicsMill_Codecs_ImageReader_RecognizeFormat.htm.md) methods.
 
## Examples
  
```csharp
using (var reader = ImageReader.Create(@"Images\in.jpg"))
using (var rotate = new Rotate(90))
using (var writer = ImageWriter.Create(@"Images\Output\out.jpg"))
{
    Pipeline.Run(reader + rotate + writer);
}
```
 
## Inheritance Hierarchy
  
- System.Object
    - [Aurigma.GraphicsMill.PipelineElement](https://www.graphicsmill.com/docs/gm/T_Aurigma_GraphicsMill_PipelineElement.htm.md)
        - Aurigma.GraphicsMill.Codecs.ImageReader
            - [Aurigma.GraphicsMill.Codecs.BmpReader](https://www.graphicsmill.com/docs/gm/T_Aurigma_GraphicsMill_Codecs_BmpReader.htm.md)
            - [Aurigma.GraphicsMill.Codecs.CustomImageReader](https://www.graphicsmill.com/docs/gm/T_Aurigma_GraphicsMill_Codecs_CustomImageReader.htm.md)
            - [Aurigma.GraphicsMill.Codecs.JpegReader](https://www.graphicsmill.com/docs/gm/T_Aurigma_GraphicsMill_Codecs_JpegReader.htm.md)
            - [Aurigma.GraphicsMill.Codecs.PngReader](https://www.graphicsmill.com/docs/gm/T_Aurigma_GraphicsMill_Codecs_PngReader.htm.md)
            - [Aurigma.GraphicsMill.Codecs.TiffReader](https://www.graphicsmill.com/docs/gm/T_Aurigma_GraphicsMill_Codecs_TiffReader.htm.md)
            - [Aurigma.GraphicsMill.Codecs.GifReader](https://www.graphicsmill.com/docs/gm/T_Aurigma_GraphicsMill_Codecs_GifReader.htm.md)
            - [Aurigma.GraphicsMill.Codecs.PdfReader](https://www.graphicsmill.com/docs/gm/T_Aurigma_GraphicsMill_Codecs_PdfReader.htm.md)
            - [Aurigma.GraphicsMill.Codecs.RawReader](https://www.graphicsmill.com/docs/gm/T_Aurigma_GraphicsMill_Codecs_RawReader.htm.md)
            - [Aurigma.GraphicsMill.Codecs.EpsReader](https://www.graphicsmill.com/docs/gm/T_Aurigma_GraphicsMill_Codecs_EpsReader.htm.md)
            - [Aurigma.GraphicsMill.Codecs.WebPReader](https://www.graphicsmill.com/docs/gm/T_Aurigma_GraphicsMill_Codecs_WebPReader.htm.md)
            - [Aurigma.GraphicsMill.Codecs.TgaReader](https://www.graphicsmill.com/docs/gm/T_Aurigma_GraphicsMill_Codecs_TgaReader.htm.md)
            - [Aurigma.GraphicsMill.Codecs.SvgReader](https://www.graphicsmill.com/docs/gm/T_Aurigma_GraphicsMill_Codecs_SvgReader.htm.md)
            - AiReader
            - [Aurigma.GraphicsMill.Codecs.Psd.PsdReader](https://www.graphicsmill.com/docs/gm/T_Aurigma_GraphicsMill_Codecs_Psd_PsdReader.htm.md)
            - IdmlReader
 
## Thread Safety
 Static members of this type are not safe for multi-threaded operations. Instance members of this type are not safe for multi-threaded operations.
   
## See Also

### Reference

- [ImageReader Members](https://www.graphicsmill.com/docs/gm/AllMembers_T_Aurigma_GraphicsMill_Codecs_ImageReader.htm.md)
- [Aurigma.GraphicsMill.Codecs Namespace](https://www.graphicsmill.com/docs/gm/N_Aurigma_GraphicsMill_Codecs.htm.md)

### Manual

- [Working with Files](https://www.graphicsmill.com/docs/gm/working-with-files.htm.md)
