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

◆ from_hbitmap()

static bitmap xtd::drawing::image::from_hbitmap ( intptr  hbitmap)
static

Creates a xtd::drawing::bitmap from a handle to a GDI bitmap.

Parameters
hbitmapThe GDI bitmap handle from which to create the xtd::drawing::bitmap.
Returns
The xtd::drawing::bitmap this method creates.
Remarks
The xtd::drawing::image::from_hbitmap method makes a copy of the GDI bitmap; so you can release the incoming GDI bitmap using the GDI DeleteObject method immediately after creating the new xtd::drawing::image.