Bitmap::Bitmap(INT,INT,PixelFormat) method (gdiplusheaders.h)

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

[in] width

Type: INT

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

[in] height

Type: INT

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

[in] 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

Requirement Value
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