---
title: "PngWriter Constructor (String, Boolean)"
canonical: https://www.graphicsmill.com/docs/gm/C_Aurigma_GraphicsMill_Codecs_PngWriter_ctor_2_d735f10e.htm
product: "Graphics Mill"
---

# PngWriter Constructor (String, 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 file name 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(string fileName,bool isInterlaced
)
```
 
### Parameters
 
 - fileName
     - Type: System.String
The name of the file 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)
