Bitmap::Bitmap method

Creates a Bitmap::Bitmap object based on a BITMAPINFO structure and an array of pixel data.

Syntax

void Bitmap(
  IN const BITMAPINFO *gdiBitmapInfo,
  IN VOID             *gdiBitmapData
);

Parameters

gdiBitmapInfo

Type: const BITMAPINFO*

Pointer to a GDIBITMAPINFO structure. This structure defines several bitmap attributes, such as size and pixel format. The BITMAPINFO structure is defined in Wingdi.h.

gdiBitmapData

Type: VOID*

Pointer to an array of bytes that contains the pixel data.

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

Bitmap::FromBITMAPINFO

Image

Images, Bitmaps, and Metafiles

Using Images, Bitmaps, and Metafiles