Bitmap::Bitmap method

Creates a Bitmap object based on an icon.

Syntax

void Bitmap(
  IN HICON hicon
);

Parameters

hicon

Type: HICON

Handle to a GDI icon.

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::FromHICON

Image

Images, Bitmaps, and Metafiles

Using Images, Bitmaps, and Metafiles