---
title: "Bitmap..::.Create Method (Single, Single, PixelFormat, ColorPalette)"
canonical: https://www.graphicsmill.com/docs/gm5/M_Aurigma_GraphicsMill_Bitmap_Create_4_377d046c.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 (Single, Single, PixelFormat, ColorPalette)
 
Discards old bitmap data and creates new bitmap of given dimensions, pixel format and palette.
 
**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 ( _width As Single, _height As Single, _format As PixelFormat, _palette As ColorPalette _
)
```
 
```csharp
public void Create(float width,float height,PixelFormat format,ColorPalette palette
)
```
 
### Parameters
 
 - 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 pixel format is not indexed, *palette* is ignored.

 - palette
     - Type: [Aurigma.GraphicsMill.ColorPalette](https://www.graphicsmill.com/docs/gm5/T_Aurigma_GraphicsMill_ColorPalette.htm.md)
Palette attached to new bitmap. 
**Note**
This palette object is binded to bitmap, not copied. It means that if you later change anything in palette object, changes will be reflected in the palette of bitmap.
 
## Remarks
 Bitmap data is stuffed with zeros. So if pixel format: 
- **supports alpha channel**  image is fully transparent
- **is RGB**  image is filled with black color
- **is CMYK**  image is filled with white color
- **is indexed**  image has color of the first palette entry
   
## 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)
