---
title: "CompressedImage.CreateFromStream Method "
canonical: https://www.graphicsmill.com/docs/gm/O_T_Aurigma_GraphicsMill_CompressedImage_CreateFromStream.htm
product: "Graphics Mill"
---

# CompressedImage.CreateFromStream Method 
 
## Overload List

|   |  Name |  Description |
| --- | --- | --- |
 |  ![Public method](https://www.graphicsmill.com/docs/gm/icons/pubmethod.gif) ![Static member](https://www.graphicsmill.com/docs/gm/icons/static.gif) |  [CreateFromStream(Stream)](https://www.graphicsmill.com/docs/gm/M_Aurigma_GraphicsMill_CompressedImage_CreateFromStream_1_bca7c9fe.htm.md) |  Creates a [CompressedImage](https://www.graphicsmill.com/docs/gm/T_Aurigma_GraphicsMill_CompressedImage.htm.md) directly from a stream, keeping a PNG or JPEG source's encoded bytes as is instead of decoding and recompressing them. |
 |  ![Public method](https://www.graphicsmill.com/docs/gm/icons/pubmethod.gif) ![Static member](https://www.graphicsmill.com/docs/gm/icons/static.gif) |  [CreateFromStream(Stream, CompressionType)](https://www.graphicsmill.com/docs/gm/M_Aurigma_GraphicsMill_CompressedImage_CreateFromStream_2_5cfc5e32.htm.md) |  Creates a [CompressedImage](https://www.graphicsmill.com/docs/gm/T_Aurigma_GraphicsMill_CompressedImage.htm.md) directly from a stream. |
   
## See Also

### Reference

- [CompressedImage Class](https://www.graphicsmill.com/docs/gm/T_Aurigma_GraphicsMill_CompressedImage.htm.md)
- [CompressedImage Members](https://www.graphicsmill.com/docs/gm/AllMembers_T_Aurigma_GraphicsMill_CompressedImage.htm.md)
- [Aurigma.GraphicsMill Namespace](https://www.graphicsmill.com/docs/gm/N_Aurigma_GraphicsMill.htm.md)
