Heading to the Printing United trade show? Schedule a meeting with our representatives.
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)

Syntax

Visual Basic
Public Sub Load ( _
	array As Integer(,,), _
	format As PixelFormat, _
	palette As ColorPalette _
)
C#
public void Load(
	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