---
title: "StreamWrapper..::.SetSize Method "
canonical: https://www.graphicsmill.com/docs/gm5/M_Aurigma_GraphicsMill_StreamWrapper_SetSize_1_5f4f955f.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.SetSize Method 
 
Changes the size of the stream object.
 
**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 SetSize ( _libNewSize As Long _
)
```
 
```csharp
public virtual void SetSize(long libNewSize
)
```
 
### Parameters
 
 - libNewSize
     - Type: [System.Int64](http://msdn2.microsoft.com/en-us/6yy583ek)
Specifies the new size of the stream as a number of bytes.
 
### Implements
 
[IStream.SetSize(Int64)](http://msdn2.microsoft.com/en-us/bx67h19h)
 
## Remarks
 For more information, please see the existing documentation for **IStream::SetSize** 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)
