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

# Portrait.genderMale Property

Module: Portrait

Type: int

## Definition

Value indicating whether the subject is a male. -1 if not computed. The range is 0 (female) -100 (male).

Python

    gender_male: int

Exceptions

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

Dart

    int get genderMale => getGenderMale();

Exceptions

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

C#

    public int genderMale
    {
        get => GetgenderMale();
    }

Exceptions

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

Java

    public int getGenderMale() throws FaceException

Exceptions

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

Swift

    public var genderMale: Int
        get {
            return Int(try! getGenderMale())
        }
    }

Exceptions

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

C

    int id3FacePortrait_GetGenderMale (ID3_FACE_PORTRAIT hPortrait, int * genderMale)

Returns

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