getImageTranslation method

Point getImageTranslation()

Gets the translation to be applied to the source image to display the portrait.

return Translation to be applied to the source image to display the portrait. throws FaceException An error has occurred during Face Library execution.

Implementation

Point getImageTranslation() {
  Pointer<id3FacePoint> pImageTranslation = calloc();
  var err = faceSDK.id3FacePortrait_GetImageTranslation(_pHandle.value, pImageTranslation);
  if (err != FaceError.success.value) {
  	calloc.free(pImageTranslation);
  	throw FaceException(err);
  }
  return Point(pImageTranslation);
}