---
title: "StreamWrapper..::.Clone Method "
canonical: https://www.graphicsmill.com/docs/gm5/M_Aurigma_GraphicsMill_StreamWrapper_Clone_1_d0b6fba8.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.Clone Method 
 
Creates a new stream object with its own seek pointer that references the same bytes as the original stream.
 
**Namespace:** [Aurigma.GraphicsMill](https://www.graphicsmill.com/docs/gm5/N_Aurigma_GraphicsMill.htm.md)
 **Assembly:** Aurigma.GraphicsMill (in Aurigma.GraphicsMill.dll)
 
## Syntax
  
```
Public Overridable Sub Clone ( _ByRef ppstm As IStream _
)
```
 
```csharp
public virtual void Clone(ref IStream ppstm
)
```
 
### Parameters
 
 - ppstm
     - Type: [System.Runtime.InteropServices.ComTypes.IStream](http://msdn2.microsoft.com/en-us/57bd893w) %
On successful return, contains the new stream object.
 
### Implements
 
[IStream.Clone(IStream)](http://msdn2.microsoft.com/en-us/heheh9tw)
 
## Remarks
 For more information, please see the existing documentation for **IStream::Clone** in the MSDN library.
   
## 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)
