---
title: "ImageWriter Class"
canonical: https://www.graphicsmill.com/docs/gm/T_Aurigma_GraphicsMill_Codecs_ImageWriter.htm
product: "Graphics Mill"
---

# ImageWriter Class
 
Represents a base class for all image writers.
 
**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 ImageWriter : PipelineElement
```
 
## Remarks
  
This class is derived by all image writers. It allows creating a writer on a file or stream with appropriate overload of [Create()](https://www.graphicsmill.com/docs/gm/O_T_Aurigma_GraphicsMill_Codecs_ImageWriter_Create.htm.md) method. To check whether the writer is opened, use [IsOpened](https://www.graphicsmill.com/docs/gm/P_Aurigma_GraphicsMill_Codecs_ImageWriter_IsOpened.htm.md) property.
 
## 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.ImageWriter
            - [Aurigma.GraphicsMill.Codecs.PdfWriter](https://www.graphicsmill.com/docs/gm/T_Aurigma_GraphicsMill_Codecs_PdfWriter.htm.md)
            - [Aurigma.GraphicsMill.Codecs.EpsWriter](https://www.graphicsmill.com/docs/gm/T_Aurigma_GraphicsMill_Codecs_EpsWriter.htm.md)
            - [Aurigma.GraphicsMill.Codecs.SvgWriter](https://www.graphicsmill.com/docs/gm/T_Aurigma_GraphicsMill_Codecs_SvgWriter.htm.md)
            - [Aurigma.GraphicsMill.Codecs.BmpWriter](https://www.graphicsmill.com/docs/gm/T_Aurigma_GraphicsMill_Codecs_BmpWriter.htm.md)
            - [Aurigma.GraphicsMill.Codecs.JpegWriter](https://www.graphicsmill.com/docs/gm/T_Aurigma_GraphicsMill_Codecs_JpegWriter.htm.md)
            - [Aurigma.GraphicsMill.Codecs.PngWriter](https://www.graphicsmill.com/docs/gm/T_Aurigma_GraphicsMill_Codecs_PngWriter.htm.md)
            - [Aurigma.GraphicsMill.Codecs.TiffWriter](https://www.graphicsmill.com/docs/gm/T_Aurigma_GraphicsMill_Codecs_TiffWriter.htm.md)
            - [Aurigma.GraphicsMill.Codecs.GifWriter](https://www.graphicsmill.com/docs/gm/T_Aurigma_GraphicsMill_Codecs_GifWriter.htm.md)
            - [Aurigma.GraphicsMill.Codecs.WebPWriter](https://www.graphicsmill.com/docs/gm/T_Aurigma_GraphicsMill_Codecs_WebPWriter.htm.md)
            - [Aurigma.GraphicsMill.Codecs.TgaWriter](https://www.graphicsmill.com/docs/gm/T_Aurigma_GraphicsMill_Codecs_TgaWriter.htm.md)
            - [Aurigma.GraphicsMill.Codecs.CustomImageWriter](https://www.graphicsmill.com/docs/gm/T_Aurigma_GraphicsMill_Codecs_CustomImageWriter.htm.md)
 
## 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

- [ImageWriter Members](https://www.graphicsmill.com/docs/gm/AllMembers_T_Aurigma_GraphicsMill_Codecs_ImageWriter.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)
