Thread Rating:
  • 0 Vote(s) - 0 Average
  • 1
  • 2
  • 3
  • 4
  • 5
GDI+ - bitmap converting
#2
Searching color from images

The QM GDI+ functions did not have a function to create GDI+ bitmap object from GDI bitmap hanle. You'll find it there.

Macro Macro1814
Code:
Copy      Help
#compile "__Gdip"

int hwnd=win

RECT r; GetClientRect hwnd &r
POINT p; ClientToScreen hwnd &p

__MemBmp mb
mb.Create(r.right r.bottom 1 p.x p.y)

_s="new_img"
if(OpenSaveDialog(1 _s "JPG files[]*.jpg[]All Files[]*.*[]" ".jpg"))
,GdipBitmap im
,if(!im.FromHBITMAP(mb.bm)) end "error"
,if(!im.Save(_s)) end "error"
,run _s


Messages In This Thread

Forum Jump:


Users browsing this thread: 1 Guest(s)