System::Drawing::Image::FromHbitmap method

Image::FromHbitmap method

Constructs a Bitmap object from the specified GDI bitmap.

static SharedPtr<Bitmap> System::Drawing::Image::FromHbitmap(IntPtr hbitmap)
ParameterTypeDescription
hbitmapIntPtrA handle to a GDI bitmap from which to create a Bitmap object

ReturnValue

A shared pointer to the created Bitmap object

See Also