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

Bitmap Constructor (Color, Int32, Int32, PixelFormat, ColorPalette)

Creates new Bitmap instance of given dimensions and pixel format. Background color is specified.

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

Syntax

Visual Basic
Public Sub New ( _
	background As Color, _
	width As Integer, _
	height As Integer, _
	format As PixelFormat, _
	palette As ColorPalette _
)
C#
public Bitmap(
	Color background,
	int width,
	int height,
	PixelFormat format,
	ColorPalette palette
)

Parameters

background

Type: Aurigma.GraphicsMill.Color

Background color to fill the bitmap with.
width

Type: System.Int32

Width of new bitmap (in pixels).
height

Type: System.Int32

Height of new bitmap (in pixels).
format

Type: Aurigma.GraphicsMill.PixelFormat

Pixel format of new bitmap. If pixel format is not indexed, palette is ignored.
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.

Remarks

If color space of the color does not fit color space of the pixel format, color is converted to necessary color space.

See Also

Reference