---
title: "BmpWriter Class"
canonical: https://www.graphicsmill.com/docs/gm/T_Aurigma_GraphicsMill_Codecs_BmpWriter.htm
product: "Graphics Mill"
---

# BmpWriter Class
 
Contains methods and properties used to write BMP images.
 
**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 sealed class BmpWriter : ImageWriter
```
 
## Remarks
  
BMP (**B**it**m**ap **P**icture) is a standard bitmap image format used to store digital images on Microsoft Windows operating systems. BMP files range from monochrome (1 bit per pixel) to 32 bit color images. The BMP format can store both indexed and full-color images in various color depths, and optionally with data compression, and color profiles.
 
BMP files can store only single image per file.
 
## Examples
  
```csharp
using (var reader = new BmpReader(@"Images\in.bmp"))
using (var rotate = new Rotate(90))
using (var writer = new BmpWriter(@"Images\Output\out.bmp"))
{
    writer.Compression = CompressionType.Rle;
    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](https://www.graphicsmill.com/docs/gm/T_Aurigma_GraphicsMill_Codecs_ImageWriter.htm.md)
            - Aurigma.GraphicsMill.Codecs.BmpWriter
 
## 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

- [BmpWriter Members](https://www.graphicsmill.com/docs/gm/AllMembers_T_Aurigma_GraphicsMill_Codecs_BmpWriter.htm.md)
- [Aurigma.GraphicsMill.Codecs Namespace](https://www.graphicsmill.com/docs/gm/N_Aurigma_GraphicsMill_Codecs.htm.md)

### Manual

- [Supported File Formats](https://www.graphicsmill.com/docs/gm/supported-file-formats.htm.md)
