How to convert a Gdiplus::GpBitmap* to Gdiplus::Bitmap*?

Viewed 83

I'm using AutoHotkey the source is written in c++ and internally it uses the GDI+ Flat API.

Im creating bitmaps into script using the Gdiplus.dll, something like:

DllCall("gdiplus.dll\GdipCreateBitmapFromFile", "WStr", File, "PtrP", Bitmap)

The bitmap is created as GpBitmap*.

I'm not able to get everything done using only these functions written in AutoHotkey, but I can find the functions done in c++.

I have built some of them into the AutoHotkey source, but these functions expect a Gdiplus::Bitmap*, I understand that I'm not supposed to use both, but as my knowledge in c++ is limited, I'm not able to write everything using just one of these APIs.

I would like to ask if is possible to convert the GpBitmap* to Gdiplus::Bitmap* and vice-versa.

0 Answers
Related