RotateEx()

Description

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

Syntax

.RotateEx(sImageIndex, fAngle, bKeepSize, newInterpolationMethod);

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.
EnumDWT_InterpolationMethod newInterpolationMethod: specifies the algorithm to do interpolation.

Allowed Values Interpolation Method
1 EnumDWT_InterpolationMethod.IM_NEARESTNEIGHBOUR
2 EnumDWT_InterpolationMethod.IM_BILINEAR
3 EnumDWT_InterpolationMethod.IM_BICUBIC

Return value

bool

true indicates success. false indicates failure.

Remarks

RotateEx() 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.