---
title: "StreamWrapper Constructor "
canonical: https://www.graphicsmill.com/docs/gm5/C_Aurigma_GraphicsMill_StreamWrapper_ctor_1_acbe2d88.htm
product: "Graphics Mill 5.5 for .NET"
---

This documentation is for the old version. [Go to the latest Graphics Mill docs](https://www.graphicsmill.com/docs/gm/)

# StreamWrapper Constructor 
 
Creates new instance of the [StreamWrapper](https://www.graphicsmill.com/docs/gm5/T_Aurigma_GraphicsMill_StreamWrapper.htm.md) and initializes it by the [Stream](http://msdn2.microsoft.com/en-us/8f86tw9e) object.
 
**Namespace:** [Aurigma.GraphicsMill](https://www.graphicsmill.com/docs/gm5/N_Aurigma_GraphicsMill.htm.md)
 **Assembly:** Aurigma.GraphicsMill (in Aurigma.GraphicsMill.dll)
 
## Syntax
  
```
Public Sub New ( _stream As Stream _
)
```
 
```csharp
public StreamWrapper(Stream stream
)
```
 
### Parameters
 
 - stream
     - Type: [System.IO.Stream](http://msdn2.microsoft.com/en-us/8f86tw9e)
The [Stream](http://msdn2.microsoft.com/en-us/8f86tw9e) object which you need to wrap.
 
## Remarks
  
Create this class whenever you need to pass .NET [Stream](http://msdn2.microsoft.com/en-us/8f86tw9e) class instance to some method of a COM object which accepts **IStream** interface.
   
## See Also

### Reference

- [StreamWrapper Class](https://www.graphicsmill.com/docs/gm5/T_Aurigma_GraphicsMill_StreamWrapper.htm.md)
- [Aurigma.GraphicsMill Namespace](https://www.graphicsmill.com/docs/gm5/N_Aurigma_GraphicsMill.htm.md)
