PortraitProcessor.cropAspectRatio Property

Module: PortraitProcessor

Type: float

Definition

Aspect ratio (height to width) of the cropped portrait image.

Hint

Default value is 4/3.

crop_aspect_ratio: float

Exceptions

An error has occurred during Face Library execution.
double get cropAspectRatio => getCropAspectRatio();
set cropAspectRatio(double value) => setCropAspectRatio(value);

Exceptions

An error has occurred during Face Library execution.
public float cropAspectRatio
{
    get => GetcropAspectRatio();
    set => SetcropAspectRatio(ref value);
}

Exceptions

An error has occurred during Face Library execution.
public float getCropAspectRatio() throws FaceException
public void setCropAspectRatio(float cropAspectRatio) throws FaceException

Exceptions

An error has occurred during Face Library execution.
public var cropAspectRatio: Float
    get {
        return try! getCropAspectRatio()
    }
}

Exceptions

An error has occurred during Face Library execution.
int id3FacePortraitProcessor_GetCropAspectRatio (ID3_FACE_PORTRAIT_PROCESSOR hPortraitProcessor, float * cropAspectRatio)
int id3FacePortraitProcessor_SetCropAspectRatio (ID3_FACE_PORTRAIT_PROCESSOR hPortraitProcessor, float cropAspectRatio)

Returns

int
An error code.
See id3FaceError file for the list of possible error codes.