---
title: "ImageGenerator Constructor (Int32, Int32, PixelFormat, Color)"
canonical: https://www.graphicsmill.com/docs/gm/C_Aurigma_GraphicsMill_ImageGenerator_ctor_4_019a0dad.htm
product: "Graphics Mill"
---

# ImageGenerator Constructor (Int32, Int32, PixelFormat, Color)
 
Initializes a new instance of the [ImageGenerator](https://www.graphicsmill.com/docs/gm/T_Aurigma_GraphicsMill_ImageGenerator.htm.md) class using the specified parameters.
 
**Namespace:** [Aurigma.GraphicsMill](https://www.graphicsmill.com/docs/gm/N_Aurigma_GraphicsMill.htm.md)
 **Assembly:** Aurigma.GraphicsMill (in Aurigma.GraphicsMill.dll)
 
## Syntax
  
```csharp
public ImageGenerator(int width,int height,PixelFormat pixelFormat,Color backgroundColor
)
```
 
### Parameters
 
 - width
     - Type: System.Int32
The width, in pixels, of the resulting bitmap. You can change this value later through the [Width](https://www.graphicsmill.com/docs/gm/P_Aurigma_GraphicsMill_ImageGenerator_Width.htm.md) property.

 - height
     - Type: System.Int32
The height, in pixels, of the resulting bitmap. You can change this value later through the [Height](https://www.graphicsmill.com/docs/gm/P_Aurigma_GraphicsMill_ImageGenerator_Height.htm.md) property.

 - pixelFormat
     - Type: [Aurigma.GraphicsMill.PixelFormat](https://www.graphicsmill.com/docs/gm/T_Aurigma_GraphicsMill_PixelFormat.htm.md)
A [PixelFormat](https://www.graphicsmill.com/docs/gm/T_Aurigma_GraphicsMill_PixelFormat.htm.md) of the resulting bitmap. You can change this value later through the [PixelFormat](https://www.graphicsmill.com/docs/gm/P_Aurigma_GraphicsMill_ImageGenerator_PixelFormat.htm.md) property.

 - backgroundColor
     - Type: [Aurigma.GraphicsMill.Color](https://www.graphicsmill.com/docs/gm/T_Aurigma_GraphicsMill_Color.htm.md)
A [Color](https://www.graphicsmill.com/docs/gm/T_Aurigma_GraphicsMill_Color.htm.md) to fill the resulting bitmap. You can change this value later through the [BackgroundColor](https://www.graphicsmill.com/docs/gm/P_Aurigma_GraphicsMill_ImageGenerator_BackgroundColor.htm.md) property.
   
## See Also

### Reference

- [ImageGenerator Class](https://www.graphicsmill.com/docs/gm/T_Aurigma_GraphicsMill_ImageGenerator.htm.md)
- [ImageGenerator Overload](https://www.graphicsmill.com/docs/gm/O_T_Aurigma_GraphicsMill_ImageGenerator_ctor.htm.md)
- [Aurigma.GraphicsMill Namespace](https://www.graphicsmill.com/docs/gm/N_Aurigma_GraphicsMill.htm.md)
