---
title: "CodecAdapter Class"
canonical: https://www.graphicsmill.com/docs/gm/T_Aurigma_GraphicsMill_CodecAdapter.htm
product: "Graphics Mill"
---

# CodecAdapter Class
 
Converts file name to the corresponding image reader of writer.
 
**Namespace:** [Aurigma.GraphicsMill](https://www.graphicsmill.com/docs/gm/N_Aurigma_GraphicsMill.htm.md)
 **Assembly:** Aurigma.GraphicsMill (in Aurigma.GraphicsMill.dll)
 
## Syntax
  
```csharp
public sealed class CodecAdapter : PipelineElement
```
 
## Remarks
 This class is used for conversion file names to corresponding image readers and writers.
 
## Examples
  
```csharp
Pipeline.Run(@"Images\in.jpg" + new Resize(100, 0) + @"Images\out.jpg");
```
 
## Inheritance Hierarchy
  
- System.Object
    - [Aurigma.GraphicsMill.PipelineElement](https://www.graphicsmill.com/docs/gm/T_Aurigma_GraphicsMill_PipelineElement.htm.md)
        - Aurigma.GraphicsMill.CodecAdapter
 
## 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

- [CodecAdapter Members](https://www.graphicsmill.com/docs/gm/AllMembers_T_Aurigma_GraphicsMill_CodecAdapter.htm.md)
- [Aurigma.GraphicsMill Namespace](https://www.graphicsmill.com/docs/gm/N_Aurigma_GraphicsMill.htm.md)

### Manual

- [Understanding Image Processing Approaches in Graphics Mill](https://www.graphicsmill.com/docs/gm/understanding-image-processing-approaches-in-graphics-mill.htm.md)
