Thread Rating:
  • 0 Vote(s) - 0 Average
  • 1
  • 2
  • 3
  • 4
  • 5
From GDI+ to FreeImage
#1
Please, any help on how to use GDI+ graphics object into FreeImage?

Thanks.
#2
I did not test, but I would try functions:
GdipBitmap.GetHBITMAP
FiBitmap.FromHBITMAP

Both are in file Archive.qml which is in this forum, QM Extensions.
#3
Macro Macro829

Something like this will do the trick. Thanks for your kind help.

Regards.

Code:
Copy      Help
#compile "__Gdip"

GdipGraphics g

;; (... some code here...)

GdipBitmap bm.CreateEmpty(100 100)
g.FromImage(bm)
__GdiHandle hb=bm.GetHBITMAP()
FiBitmap fx.FromHBITMAP(hb)
DeleteObject hb
#4
Don't need DeleteObject hb. __GdiHandle destructor calls DeleteObject.


Forum Jump:


Users browsing this thread: 1 Guest(s)