---
title: "GraphicsContainerRasterizer Constructor (GraphicsContainer, PixelFormat, Color)"
canonical: https://www.graphicsmill.com/docs/gm/C_Aurigma_GraphicsMill_GraphicsContainerRasterizer_ctor_3_8311ddfc.htm
product: "Graphics Mill"
---

# GraphicsContainerRasterizer Constructor (GraphicsContainer, PixelFormat, Color)
 
Initializes a new instance of the [GraphicsContainerRasterizer](https://www.graphicsmill.com/docs/gm/T_Aurigma_GraphicsMill_GraphicsContainerRasterizer.htm.md) class using the specified container, pixel format and background color.
 
**Namespace:** [Aurigma.GraphicsMill](https://www.graphicsmill.com/docs/gm/N_Aurigma_GraphicsMill.htm.md)
 **Assembly:** Aurigma.GraphicsMill (in Aurigma.GraphicsMill.dll)
 
## Syntax
  
```csharp
public GraphicsContainerRasterizer(GraphicsContainer container,PixelFormat pixelFormat,Color backgroundColor
)
```
 
### Parameters
 
 - container
     - Type: [Aurigma.GraphicsMill.Drawing.GraphicsContainer](https://www.graphicsmill.com/docs/gm/T_Aurigma_GraphicsMill_Drawing_GraphicsContainer.htm.md)
The [GraphicsContainer](https://www.graphicsmill.com/docs/gm/T_Aurigma_GraphicsMill_Drawing_GraphicsContainer.htm.md) to rasterize. You can change this value later through the [GraphicsContainer](https://www.graphicsmill.com/docs/gm/P_Aurigma_GraphicsMill_GraphicsContainerRasterizer_GraphicsContainer.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.

 - 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_GraphicsContainerRasterizer_BackgroundColor.htm.md) property.
   
## See Also

### Reference

- [GraphicsContainerRasterizer Class](https://www.graphicsmill.com/docs/gm/T_Aurigma_GraphicsMill_GraphicsContainerRasterizer.htm.md)
- [GraphicsContainerRasterizer Overload](https://www.graphicsmill.com/docs/gm/O_T_Aurigma_GraphicsMill_GraphicsContainerRasterizer_ctor.htm.md)
- [Aurigma.GraphicsMill Namespace](https://www.graphicsmill.com/docs/gm/N_Aurigma_GraphicsMill.htm.md)
