---
title: "PngWriter Constructor (Stream, Boolean)"
canonical: https://www.graphicsmill.com/docs/gm/C_Aurigma_GraphicsMill_Codecs_PngWriter_ctor_2_6208ef67.htm
product: "Graphics Mill"
---

# PngWriter Constructor (Stream, Boolean)
 
Initializes a new instance of the [PngWriter](https://www.graphicsmill.com/docs/gm/T_Aurigma_GraphicsMill_Codecs_PngWriter.htm.md) class for the given Stream specifying whether the image should be interlaced.
 
**Namespace:** [Aurigma.GraphicsMill.Codecs](https://www.graphicsmill.com/docs/gm/N_Aurigma_GraphicsMill_Codecs.htm.md)
 **Assembly:** Aurigma.GraphicsMill (in Aurigma.GraphicsMill.dll)
 
## Syntax
  
```csharp
public PngWriter(Stream stream,bool isInterlaced
)
```
 
### Parameters
 
 - stream
     - Type: System.IO.Stream
The Stream to create this writer on.

 - isInterlaced
     - Type: System.Boolean
 `true` the image is interlaced; otherwise, `false`. You can change it later through the [IsInterlaced](https://www.graphicsmill.com/docs/gm/P_Aurigma_GraphicsMill_Codecs_PngWriter_IsInterlaced.htm.md) property.
   
## See Also

### Reference

- [PngWriter Class](https://www.graphicsmill.com/docs/gm/T_Aurigma_GraphicsMill_Codecs_PngWriter.htm.md)
- [PngWriter Overload](https://www.graphicsmill.com/docs/gm/O_T_Aurigma_GraphicsMill_Codecs_PngWriter_ctor.htm.md)
- [Aurigma.GraphicsMill.Codecs Namespace](https://www.graphicsmill.com/docs/gm/N_Aurigma_GraphicsMill_Codecs.htm.md)
