Erase()

Description

Clears the specified area of a specified image and fill the area with the fill color.

Syntax

.Erase(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. The unit is pixel.
<int> top: specifies the y-coordinate of the upper-left corner of the rectangle. The unit is pixel.
<int> right: specifies the x-coordinate of the lower-right corner of the rectangle. The unit is pixel.
<int> bottom: specifies the y-coordinate of the lower-right corner of the rectangle. The unit is pixel.

Return value

bool

true indicates success. false indicates failure.

Remarks

The fill color is set by BackgroundFillColor.

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

See Also

BackgroundFillColor

Is this page helpful?

Leave a Reply

Your email address will not be published.