Information
The topic you requested is included in another documentation set. For convenience, it's displayed below. Choose Switch to see the topic in its original location.

Bitmap.FromResource method

Applies to: desktop apps only

The Bitmap::FromResource method creates a Bitmap object based on an application or DLL instance handle and the name of a bitmap resource.

Syntax

static Bitmap* FromResource(
  [in]  HINSTANCE hInstance,
  [in]  const WCHAR *bitmapName
);

Parameters

hInstance [in]

Type: HINSTANCE

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

bitmapName [in]

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

Type:

Type: Bitmap*

This method returns a pointer to the new Bitmap object.

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
Image
Using Images, Bitmaps, and Metafiles
Images, Bitmaps, and Metafiles

 

 

Send comments about this topic to Microsoft

Build date: 3/6/2012

Community Additions

Show:
© 2014 Microsoft