getImageCenter method

Point getImageCenter()

Gets the center of the portrait in the source image.

return Center of the portrait in the source image. throws FaceException An error has occurred during Face Library execution.

Implementation

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