setCropAspectRatio method

void setCropAspectRatio(
  1. double cropAspectRatio
)

Sets the aspect ratio (height to width) of the cropped portrait image. Hint: Default value is 4/3.

param cropAspectRatio Aspect ratio (height to width) of the cropped portrait image. throws FaceException An error has occurred during Face Library execution.

Implementation

void setCropAspectRatio(double cropAspectRatio) {
  var err = faceSDK.id3FacePortraitProcessor_SetCropAspectRatio(_pHandle.value, cropAspectRatio);
  if (err != FaceError.success.value) {
    throw FaceException(err);
  }
}