CropToClipboard()

Description

Crops the image of a specified index in buffer to clipboard in DIB format.

Syntax

.CropToClipboard(sImageIndex, left, top, right, bottom);

Parameters

<short> sImageIndex: specifies the index of image in buffer. The index is 0-based.
<int> left: specifies the x-coordinate of the upper-left corner of the rectangle.
<int> top: specifies the y-coordinate of the upper-left corner of the rectangle.
<int> right: specifies the x-coordinate of the lower-right corner of the rectangle.
<int> bottom: specifies the y-coordinate of the lower-right corner of the rectangle.

Return value

bool

true indicates success. false indicates failure.

Remarks

CropToClipboard() crops an image and makes a copy of the cropped image to the clipboard.

When false is returned, check ErrorCode or ErrorString for error information.

See Also

Crop
OnImageAreaSelected
OnImageAreaDeSelected

Is this page helpful?

Leave a Reply

Your email address will not be published.