Thread Rating:
  • 0 Vote(s) - 0 Average
  • 1
  • 2
  • 3
  • 4
  • 5
Searching color from images
#4
Is it possible to modify the below example to get the clipboard contents which is bitmap and then convert it to JPG?

Macro Macro16
Code:
Copy      Help
;file
str sFile="$desktop$\qm test jpg gdip.jpg"

;________________________

;capture to memory
__GdiHandle hb
CaptureImageOnScreen(0 0 ScreenWidth ScreenHeight "" hb)

;save as png
#compile "__Gdip"



GdipBitmap im
if(!im.FromHBITMAP(hb)) end "error"
if(!im.Save(sFile)) end "error"

;________________________

;show the image
run sFile


Messages In This Thread

Forum Jump:


Users browsing this thread: 2 Guest(s)