---
title: "ImageGenerator Constructor (IImageParams, Color)"
canonical: https://www.graphicsmill.com/docs/gm/C_Aurigma_GraphicsMill_ImageGenerator_ctor_2_fcf9caf0.htm
archived: false
applies_to:
  - product: "Graphics Mill"
    versions: ["12.1", "6.x-12.x (may differ)"]
    entity_id: "https://www.graphicsmill.com/#software-application"
---

# ImageGenerator Constructor (IImageParams, Color)

**Applies to:** Graphics Mill 12.1, 6.x-12.x (may differ)
 
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(IImageParams params,Color backgroundColor
)
```
 
### Parameters
 
 - params
     - Type: [Aurigma.GraphicsMill.IImageParams](https://www.graphicsmill.com/docs/gm/T_Aurigma_GraphicsMill_IImageParams.htm.md)
An [IImageParams](https://www.graphicsmill.com/docs/gm/T_Aurigma_GraphicsMill_IImageParams.htm.md) containing parameters to initialize this [ImageGenerator](https://www.graphicsmill.com/docs/gm/T_Aurigma_GraphicsMill_ImageGenerator.htm.md).

 - 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)
