Bitmap::Bitmap method

Creates a Bitmap::Bitmap object of a specified size and pixel format. The pixel data must be provided after the Bitmap::Bitmap object is constructed.

Syntax

void Bitmap(
  IN INT         width,
  IN INT         height,
  IN PixelFormat format
);

Parameters

width

Type: INT

Integer that specifies the width, in pixels, of the bitmap.

height

Type: INT

Integer that specifies the height, in pixels, of the bitmap.

format

Type: PixelFormat

Optional. Integer that specifies the pixel format of the bitmap. The PixelFormat data type and constants that represent various pixel formats are defined in Gdipluspixelformats.h. For more information about pixel format constants, see Image Pixel Format Constants. The default value is PixelFormat32bppARGB.

Return Value

None

Requirements

   
Minimum supported client Windows XP, Windows 2000 Professional [desktop apps only]
Minimum supported server Windows 2000 Server [desktop apps only]
Target Platform Windows
Header gdiplusheaders.h (include Gdiplus.h)
Library Gdiplus.lib
DLL Gdiplus.dll

See Also

Bitmap

Bitmap Constructors

Image

Image Pixel Format Constants

Images, Bitmaps, and Metafiles

Using Images, Bitmaps, and Metafiles