Rotate()

Description

Rotates the image of a specified index in buffer by a specified angle.

Syntax

.Rotate(sImageIndex, fAngle, bKeepSize);

Parameters

<short> sImageIndex: specifies the index of image in buffer. The index is 0-based.
<float> fAngle: specifies the angle to rotate the image. Positive angle means counter-clockwise. Negative value is clockwise.
bool bKeepSize: specifies whether to keep the original size of the image.

Return value

bool

true indicates success. false indicates failure.

Remarks

Rotate() rotates an image and replaces the original image with the rotated copy.

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

See Also

RotateRight()
RotateLeft()

Is this page helpful?

Leave a Reply

Your email address will not be published.