how to cut a region of a image to clipboard (using selectregion this function)(5

K

kerry

Unregistered / Unconfirmed
GUEST, unregistred user!
how to cut a region of a image to clipboard (using selectregion this function)(50分)<br />how to cut a region of a image to clipboard (using selectregion this function)
 
Function SelectClipRgn

int SelectClipRgn(

HDC hdc, // handle of device context
HRGN hrgn // handle of region to be selected
);

Return Values

If the function succeeds, the return value specifies the region's complexity and can be any one of the following values:

Value Meaning
NULLREGION Region is empty.
SIMPLEREGION Region is a single rectangle.
COMPLEXREGION Region is more than one rectangle.
ERROR An error occurred. (The previous clipping
region is unaffected.)
 
can i have the source code to cut a region of a image to clipboard
 
no. you should use a temp bmp, set it's clip region to the region what you want to get, and draw the source bmp to this temp bmp. then select this bmp into clipboard.
 
多人接受答案了。
 
顶部