Export (0) Print
Expand All

Bitmap.FromHICON method

Applies to: desktop apps only

The Bitmap::FromHICON method creates a Bitmap object based on a handle to an icon.

Syntax

static Bitmap* FromHICON(
  [in]  HICON hicon
);

Parameters

hicon [in]

Type: HICON

Handle to a GDI icon.

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

ADD
Show:
© 2014 Microsoft