---
title: "Bitmap..::.Create Method (Color, Single, Single, PixelFormat)"
canonical: https://www.graphicsmill.com/docs/gm5/M_Aurigma_GraphicsMill_Bitmap_Create_4_bfa7521b.htm
product: "Graphics Mill 5.5 for .NET"
---

This documentation is for the old version. [Go to the latest Graphics Mill docs](https://www.graphicsmill.com/docs/gm/)

# Bitmap.Create Method (Color, Single, Single, PixelFormat)
 
Discards old bitmap data and creates new bitmap of given dimensions and pixel format. Background color is specified.
 
**Namespace:** [Aurigma.GraphicsMill](https://www.graphicsmill.com/docs/gm5/N_Aurigma_GraphicsMill.htm.md)
 **Assembly:** Aurigma.GraphicsMill (in Aurigma.GraphicsMill.dll)
 
## Syntax
  
```
Public Sub Create ( _background As Color, _width As Single, _height As Single, _format As PixelFormat _
)
```
 
```csharp
public void Create(Color background,float width,float height,PixelFormat format
)
```
 
### Parameters
 
 - background
     - Type: [Aurigma.GraphicsMill.Color](https://www.graphicsmill.com/docs/gm5/T_Aurigma_GraphicsMill_Color.htm.md)
Background color to fill the bitmap with.

 - width
     - Type: [System.Single](http://msdn2.microsoft.com/en-us/3www918f)
Width of new bitmap (in pixels).

 - height
     - Type: [System.Single](http://msdn2.microsoft.com/en-us/3www918f)
Height of new bitmap (in pixels).

 - format
     - Type: [Aurigma.GraphicsMill.PixelFormat](https://www.graphicsmill.com/docs/gm5/T_Aurigma_GraphicsMill_PixelFormat.htm.md)
Pixel format of new bitmap. If you specify indexed pixel format, uninitialized palette will be generated. You must fill entries yourself. Palette will have maximum possible for given pixel format colors number (2 colors for 1-bit images, 16 colors for 4-bit images, and 256 colors for 8-bit images).
 
## Remarks
 If color space of the color does not fit color space of the pixel format, color is converted to necessary color space.
   
## See Also

### Reference

- [Bitmap Class](https://www.graphicsmill.com/docs/gm5/T_Aurigma_GraphicsMill_Bitmap.htm.md)
- [Create Overload](https://www.graphicsmill.com/docs/gm5/O_T_Aurigma_GraphicsMill_Bitmap_Create.htm.md)
- [Aurigma.GraphicsMill Namespace](https://www.graphicsmill.com/docs/gm5/N_Aurigma_GraphicsMill.htm.md)
