FromHbitmap()

Image::FromHbitmap(IntPtr) method

Constructs a Bitmap object from the specified GDI bitmap.

static SharedPtr<Bitmap> System::Drawing::Image::FromHbitmap(IntPtr hbitmap)

Arguments

ParameterTypeDescription
hbitmapIntPtrA handle to a GDI bitmap from which to create a Bitmap object

Return Value

A shared pointer to the created Bitmap object

See Also