getimage

This function is used to get the image from the current drawing device.

// Get an image from the current drawing device
void getimage(
	IMAGE* pDstImg,		// Image object pointer for saving images
	int srcX,			// To get the upper-left corner x coordinates of the image area
	int srcY,			// To get the upper-left corner y coordinates of the image area
	int srcWidth,		// To get the width of the image area
	int srcHeight		// To get the height of the image area
);

Parameters

pDstImg

The IMAGE object pointer that holds the image.

srcX

To get the upper-left x coordinates of the image area.

srcY

To get the upper-left y coordinates of the image area.

srcWidth

The width of the area to get.

srcHeight

The height of the area to get.

Return Value

None

Examples

Refer to the putimage function example.

(贡献者:Krissi  编辑