---
title: "Bitmap..::.Load Method (array&lt;Int32,3&gt;[,](,)[,], PixelFormat, ColorPalette)"
canonical: https://www.graphicsmill.com/docs/gm5/M_Aurigma_GraphicsMill_Bitmap_Load_5_ef059027.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.Load Method (Int32[,], PixelFormat, ColorPalette)
 
Loads the bitmap from given 3D array of pixels 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 Load ( _array As Integer(,,), _format As PixelFormat, _palette As ColorPalette _
)
```
 
```csharp
public void Load(int[,,] array,PixelFormat format,ColorPalette palette
)
```
 
### Parameters
 
 - array
     - Type:  [System.Int32](http://msdn2.microsoft.com/en-us/td2s409d) [,]
Array of image pixels should have the following format: first dimension is bitmap columns, second dimension is a bitmap rows, third dimension is a pixels channels. Indexed pixel formats are treated as having single channel.

 - 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, argument *palette* will be ignored. 
**Note**
**Format1bppIndexed** and **Format4bppIndexed** pixel formats are not supported as well as any other pixel format which is not aligned on byte.

 - 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.
   
## See Also

### Reference

- [Bitmap Class](https://www.graphicsmill.com/docs/gm5/T_Aurigma_GraphicsMill_Bitmap.htm.md)
- [Load Overload](https://www.graphicsmill.com/docs/gm5/O_T_Aurigma_GraphicsMill_Bitmap_Load.htm.md)
- [Aurigma.GraphicsMill Namespace](https://www.graphicsmill.com/docs/gm5/N_Aurigma_GraphicsMill.htm.md)
