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

# Portrait.subjectPosition Property

Module: Portrait

Type: SubjectPosition

## Definition

Position of the subject in the image.

Python

    subject_position: SubjectPosition

Exceptions

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

Dart

    int get subjectPosition => getSubjectPosition();

Exceptions

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

C#

    public SubjectPosition subjectPosition
    {
        get => GetsubjectPosition();
    }

Exceptions

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

Java

    public int getSubjectPosition() throws FaceException

Exceptions

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

Swift

    public var subjectPosition: SubjectPosition
        get {
            return try! getSubjectPosition()
        }
    }

Exceptions

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

C

    int id3FacePortrait_GetSubjectPosition (ID3_FACE_PORTRAIT hPortrait, id3FaceSubjectPosition * eSubjectPosition)

Returns

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