Bitmap::Bitmap method

Creates a Bitmap::Bitmap object based on an application or DLL instance handle and the name of a bitmap resource.

Syntax

void Bitmap(
  IN HINSTANCE   hInstance,
  IN const WCHAR *bitmapName
);

Parameters

hInstance

Type: HINSTANCE

Handle to an instance of a module whose executable file contains a bitmap resource.

bitmapName

Type: const WCHAR*

Pointer to a null-terminated string that specifies the path name of the bitmap resource to be loaded. Alternatively, this parameter can consist of the resource identifier in the low-order word and zero in the high-order word. You can use the MAKEINTRESOURCE macro to create this value.

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

Image

Images, Bitmaps, and Metafiles

Using Images, Bitmaps, and Metafiles