---
title: "CompressedImage.CreateFromPipeline Method (Pipeline, CompressionType)"
canonical: https://www.graphicsmill.com/docs/gm/M_Aurigma_GraphicsMill_CompressedImage_CreateFromPipeline_2_9e447daa.htm
product: "Graphics Mill"
---

# CompressedImage.CreateFromPipeline Method (Pipeline, CompressionType)
 
Creates a [CompressedImage](https://www.graphicsmill.com/docs/gm/T_Aurigma_GraphicsMill_CompressedImage.htm.md) from an image source, explicitly choosing the compression type.
 
**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
)
```
 
### 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)
 
### 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)
