Meet us at PRINT 19. Chicago, IL. Oct. 3 - 5.

Bitmap Constructor (Int32, Int32, PixelFormat)

Initializes a new instance of the Bitmap class with the specified size and pixel format.

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


public Bitmap(
	int width,
	int height,
	PixelFormat format



Type: System.Int32

The width, in pixels, of the new Bitmap.

Type: System.Int32

The height, in pixels, of the new Bitmap.

Type: Aurigma.GraphicsMill.PixelFormat

The pixel format for the new Bitmap. If you specify indexed pixel format, uninitialized palette will be generated. You must fill entries by yourself. Palette will have maximum possible for given pixel format colors number (2 colors for 1-bit images, 16 colors for 4-bit images, and 256 colors for 8-bit images).


All pixel data are filled with 0. So if pixel format:

  • supports alpha channel - image is fully transparent;
  • is RGB - image is filled with black color;
  • is CMYK - image is filled with white color;
  • is indexed - image has color of the first palette entry.

See Also