rotateTo method

void rotateTo(
  1. int angle,
  2. Image dstImage
)

Rotates the image to the specified angle. Note: The rotation is performed counter-clockwise.

param angle The rotation angle, in degree. Supported values are (0, 90, 180, 270). param dstImage The destination Image that receives the rotated image. throws FaceException An error has occurred during Face Library execution.

Implementation

void rotateTo(int angle, Image dstImage) {
  var err = faceSDK.id3FaceImage_RotateTo(_pHandle.value, angle, dstImage.handle);
  if (err != FaceError.success.value) {
    throw FaceException(err);
  }
}