---
title: "CompressedImage.CreateFromPipeline Method (Pipeline, CompressionType, WriterSettings)"
canonical: https://www.graphicsmill.com/docs/gm/M_Aurigma_GraphicsMill_CompressedImage_CreateFromPipeline_3_fa2edce8.htm
product: "Graphics Mill"
---

# CompressedImage.CreateFromPipeline Method (Pipeline, CompressionType, WriterSettings)
 
Creates a [CompressedImage](https://www.graphicsmill.com/docs/gm/T_Aurigma_GraphicsMill_CompressedImage.htm.md) from an image source, explicitly choosing the compression type and its settings.
 
**Namespace:** [Aurigma.GraphicsMill](https://www.graphicsmill.com/docs/gm/N_Aurigma_GraphicsMill.htm.md)
 **Assembly:** Aurigma.GraphicsMill (in Aurigma.GraphicsMill.dll)
 
## Syntax
  
```csharp
public static CompressedImage CreateFromPipeline(Pipeline pipeline,CompressionType compression,WriterSettings writerSettings
)
```
 
### Parameters
 
 - pipeline
     - Type: [Aurigma.GraphicsMill.Pipeline](https://www.graphicsmill.com/docs/gm/T_Aurigma_GraphicsMill_Pipeline.htm.md)
A [Pipeline](https://www.graphicsmill.com/docs/gm/T_Aurigma_GraphicsMill_Pipeline.htm.md) providing the source image data.

 - compression
     - Type: [Aurigma.GraphicsMill.Codecs.CompressionType](https://www.graphicsmill.com/docs/gm/T_Aurigma_GraphicsMill_Codecs_CompressionType.htm.md)
The [CompressionType](https://www.graphicsmill.com/docs/gm/T_Aurigma_GraphicsMill_Codecs_CompressionType.htm.md) to use for the compressed streams.

 - writerSettings
     - Type: [Aurigma.GraphicsMill.Codecs.WriterSettings](https://www.graphicsmill.com/docs/gm/T_Aurigma_GraphicsMill_Codecs_WriterSettings.htm.md)
The [WriterSettings](https://www.graphicsmill.com/docs/gm/T_Aurigma_GraphicsMill_Codecs_WriterSettings.htm.md) that define the compression parameters, for example, the JPEG quality.
 
### Return Value
A new [CompressedImage](https://www.graphicsmill.com/docs/gm/T_Aurigma_GraphicsMill_CompressedImage.htm.md) instance.
   
## See Also

### Reference

- [CompressedImage Class](https://www.graphicsmill.com/docs/gm/T_Aurigma_GraphicsMill_CompressedImage.htm.md)
- [CreateFromPipeline Overload](https://www.graphicsmill.com/docs/gm/O_T_Aurigma_GraphicsMill_CompressedImage_CreateFromPipeline.htm.md)
- [Aurigma.GraphicsMill Namespace](https://www.graphicsmill.com/docs/gm/N_Aurigma_GraphicsMill.htm.md)

### Manual

- [Compressed Image](https://www.graphicsmill.com/docs/gm/compressed-image.htm.md)
