# getCropAspectRatio method

double getCropAspectRatio()

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

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

## Implementation

    double getCropAspectRatio() {
      Pointer<Float> pCropAspectRatio = calloc();
      try {
        var err = faceSDK.id3FacePortraitProcessor_GetCropAspectRatio(_pHandle.value, pCropAspectRatio);
        if (err != FaceError.success.value) {
          throw FaceException(err);
        }
        final vCropAspectRatio = pCropAspectRatio.value;
        return vCropAspectRatio;
      } finally {
        calloc.free(pCropAspectRatio);
      }
    }