This documentation is for the old version. Go to the latest Graphics Mill docs

Bitmap.Load Method (Int32[,], PixelFormat, ColorPalette)

Loads the bitmap from given 3D array of pixels and palette.

Namespace: Aurigma.GraphicsMill
Assembly: Aurigma.GraphicsMill (in Aurigma.GraphicsMill.dll)


Visual Basic
Public Sub Load ( _
	array As Integer(,,), _
	format As PixelFormat, _
	palette As ColorPalette _
public void Load(
	int[,,] array,
	PixelFormat format,
	ColorPalette palette



Type: System.Int32 [,]

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.

Type: Aurigma.GraphicsMill.PixelFormat

Pixel format of new bitmap. If pixel format is not indexed, argument palette will be ignored.

Format1bppIndexed and Format4bppIndexed pixel formats are not supported as well as any other pixel format which is not aligned on byte.


Type: Aurigma.GraphicsMill.ColorPalette

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