## Image::FromHbitmap method


Constructs a [Bitmap](../../bitmap/) object from the specified GDI bitmap.

```cpp
static SharedPtr<Bitmap> System::Drawing::Image::FromHbitmap(IntPtr hbitmap)
```


| Parameter | Type | Description |
| --- | --- | --- |
| hbitmap | IntPtr | A handle to a GDI bitmap from which to create a [Bitmap](../../bitmap/) object |

### ReturnValue

A shared pointer to the created [Bitmap](../../bitmap/) object

## See Also

* Typedef [SharedPtr](../../../system/sharedptr/)
* Class [Bitmap](../../bitmap/)
* Class [Image](../)
* Namespace [System::Drawing](../../)
* Library [Aspose.PDF for C++](../../../)
