---
title: "SvgWriter Constructor (Stream, Int32, Int32, Single, Single)"
canonical: https://www.graphicsmill.com/docs/gm/C_Aurigma_GraphicsMill_Codecs_SvgWriter_ctor_5_98103f9e.htm
product: "Graphics Mill"
---

# SvgWriter Constructor (Stream, Int32, Int32, Single, Single)
 
Initializes a new instance of the [SvgWriter](https://www.graphicsmill.com/docs/gm/T_Aurigma_GraphicsMill_Codecs_SvgWriter.htm.md) class using the specified Stream, width, height, and resolution.
 
**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 SvgWriter(Stream stream,int width,int height,float dpiX,float dpiY
)
```
 
### Parameters
 
 - stream
     - Type: System.IO.Stream
The Stream to create this writer on.

 - width
     - Type: System.Int32
The width of the resulting image.

 - height
     - Type: System.Int32
The height of the resulting image.

 - dpiX
     - Type: System.Single
The horizontal resolution of the resulting image in DPI.

 - dpiY
     - Type: System.Single
The vertical resolution of the resulting image in DPI.
   
## See Also

### Reference

- [SvgWriter Class](https://www.graphicsmill.com/docs/gm/T_Aurigma_GraphicsMill_Codecs_SvgWriter.htm.md)
- [SvgWriter Overload](https://www.graphicsmill.com/docs/gm/O_T_Aurigma_GraphicsMill_Codecs_SvgWriter_ctor.htm.md)
- [Aurigma.GraphicsMill.Codecs Namespace](https://www.graphicsmill.com/docs/gm/N_Aurigma_GraphicsMill_Codecs.htm.md)
