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

Bitmap Constructor (Int32[,], PixelFormat, ColorPalette)

Creates new Bitmap instance from 3D array of pixels and palette.

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

Syntax

Visual Basic
Public Sub New ( _
	array As Integer(,,), _
	format As PixelFormat, _
	palette As ColorPalette _
)
C#
public Bitmap(
	int[,,] array,
	PixelFormat format,
	ColorPalette palette
)

Parameters

array

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.
format

Type: Aurigma.GraphicsMill.PixelFormat

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

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