Bitmap.Bitmap(const BITMAPINFO*, VOID*) constructor

Applies to: desktop apps only

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

Syntax

Bitmap(
  [in]  const BITMAPINFO *gdiBitmapInfo,
  [in]  VOID *gdiBitmapData
);

Parameters

  • gdiBitmapInfo [in]
    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 [in]
    Type: VOID*

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

Requirements

Minimum supported client

Windows XP, Windows 2000 Professional

Minimum supported server

Windows 2000 Server

Product

GDI+ 1.0

Header

Gdiplusheaders.h (include Gdiplus.h)

Library

Gdiplus.lib

DLL

Gdiplus.dll

See also

Bitmap

Bitmap Constructors

Bitmap::FromBITMAPINFO

Image

Using Images, Bitmaps, and Metafiles

Images, Bitmaps, and Metafiles

 

 

Send comments about this topic to Microsoft

Build date: 3/6/2012