SetSelectedImageArea()

Description

Selects a rectanglar area on an image specified by index.

Syntax

.SetSelectedImageArea(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.

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

Remarks

You should set Unit before using this method.