Hide navigation sidebar
Hide table of contents sidebar
Skip to content
Back to top
Toggle table of contents sidebar

# Portrait.imageScale Property

Module: Portrait

Type: float

## Definition

Scale to be applied to the source image to display the portrait.

Python

    image_scale: float

Exceptions

> FaceException
> An error has occurred during Face Library execution.

Dart

    double get imageScale => getImageScale();

Exceptions

> FaceException
> An error has occurred during Face Library execution.

C#

    public float imageScale
    {
        get => GetimageScale();
    }

Exceptions

> FaceException
> An error has occurred during Face Library execution.

Java

    public float getImageScale() throws FaceException

Exceptions

> FaceException
> An error has occurred during Face Library execution.

Swift

    public var imageScale: Float
        get {
            return try! getImageScale()
        }
    }

Exceptions

> FaceException
> An error has occurred during Face Library execution.

C

    int id3FacePortrait_GetImageScale (ID3_FACE_PORTRAIT hPortrait, float * imageScale)

Returns

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