xtd 0.2.0
Loading...
Searching...
No Matches

◆ from_handle()

static icon xtd::drawing::icon::from_handle ( intptr  handle)
static

Creates a GDI+ xtd::drawing::icon from the specified Windows handle to an icon (HICON).

Parameters
handleA Windows handle to an icon.
Returns
The xtd::drawing::icon this method creates.
Remarks
When using this method, you must dispose of the original icon by using the DestroyIcon method in the Windows API to ensure that the resources are released.