hello guys!
i want to know how to crop image.
i use gdip. and i want use these.
Target_Hwnd := WinExist("A")
pToken := Gdip_Startup()
pBitmap := Gdip_BitmapFromHWND(Target_Hwnd)
Gdip_SaveBitmapToFile(pBitmap, "capture.bmp", 100)
Gdip_DisposeImage(pBitmap)
Gdip_Shutdown(pToken)
return
if i use these , just captured hwnd. i want crop the image. how can i do that?
coordinate is 25,206,253,61
how to crop image Topic is solved
Re: how to crop image Topic is solved
Code: Select all
Target_Hwnd := WinExist("A")
pToken := Gdip_Startup()
pBitmap := Gdip_BitmapFromHWND(Target_Hwnd)
bm_cropped:=Gdip_CloneBitmapArea(pBitmap, 25,206,253,61 )
Gdip_SaveBitmapToFile(bm_cropped, "capture.bmp")
Gdip_DisposeImage(pBitmap)
Gdip_DisposeImage(bm_cropped)
Gdip_Shutdown(pToken)
return
Who is online
Users browsing this forum: No registered users and 362 guests