can you use HB_CROPPED I use in that class
Function CutImage(nBoxTop,nBoxLeft,nBoxBottom,nBoxRight)
local nType:= 2 //jpg
Local cNameFileCropped:="cropped.jpg"
Local nWBmp,nHBmp
oImageCropped:hBitmap:= CropImage( oImage:hBitmap,nBoxTop,nBoxLeft, nBoxBottom, nBoxRight)
oImageCropped:SaveImage( cNameFileCropped, nType)
oImageCropped:LoadBmp( cNameFileCropped )
nWBmp := alltrim(str(nBmpWidth( oImageCropped:hBitmap )))
nHBmp := alltrim(str(nBmpHeight( oImageCropped:hBitmap ) ))
oGroupCropped:setText("Image Cropped : Dim. "+nWBmp+"X"+nHBmp )
oGroupCropped:refresh()
return nil
Natter wrote:How can I cut out an area of the screen and save it as a picture in the clipboard ?
hBmp := FWSaveScreen( GetDesktopWindow(), nTop, nLeft, nBottom, nRight )
DEFINE CLIPBOARD oClp FORMAT BITMAP OF oWnd
oClp:Open()
oClp:SetBitmap( hBmp )
oClp:Close()
Natter wrote:Thank you, Mr. Rao.
Is it possible to insert the cut fragment at the specified position of the screen ?
Natter wrote:I drew something on the window - a line, a polygon, etc.. Then I want to erase the painting.
Return to FiveWin for Harbour/xHarbour
Users browsing this forum: No registered users and 67 guests