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

# Portrait.imageTranslation Property

Module: Portrait

Type: Point

## Definition

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

Python

    image_translation: Point

Exceptions

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

Dart

    Point get imageTranslation => getImageTranslation();

Exceptions

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

C#

    public Point imageTranslation
    {
        get => GetimageTranslation();
    }

Exceptions

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

Java

    public Point getImageTranslation() throws FaceException

Exceptions

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

Swift

    public var imageTranslation: Point
        get {
            return try! getImageTranslation()
        }
    }

Exceptions

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

C

    int id3FacePortrait_GetImageTranslation (ID3_FACE_PORTRAIT hPortrait, id3FacePoint * sImageTranslation)

Returns

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