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

# Image.flip Method

Module: Image

## Definition

Flips the image in-place.

Python

    flip(self, flip_horizontally: bool, flip_vertically: bool) -> None

Parameters

> `flip_horizontally` bool
> in Value indicating whether the image should be flipped horizontally.
> `flip_vertically` bool
> in Value indicating whether the image should be flipped vertically.

Exceptions

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

Dart

    void flip(bool flipHorizontally, bool flipVertically)

Parameters

> `flipHorizontally` bool
> in Value indicating whether the image should be flipped horizontally.
> `flipVertically` bool
> in Value indicating whether the image should be flipped vertically.

Exceptions

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

C#

    public void Flip(bool flipHorizontally, bool flipVertically)

Parameters

> `flipHorizontally` bool
> in Value indicating whether the image should be flipped horizontally.
> `flipVertically` bool
> in Value indicating whether the image should be flipped vertically.

Exceptions

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

Java

    public void flip(boolean flipHorizontally, boolean flipVertically) throws FaceException

Parameters

> `flipHorizontally` boolean
> in Value indicating whether the image should be flipped horizontally.
> `flipVertically` boolean
> in Value indicating whether the image should be flipped vertically.

Exceptions

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

Swift

    public func flip(flipHorizontally: Bool, flipVertically: Bool) throws

Parameters

> `flipHorizontally` Bool
> in Value indicating whether the image should be flipped horizontally.
> `flipVertically` Bool
> in Value indicating whether the image should be flipped vertically.

Exceptions

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

C

    int id3FaceImage_Flip (
        ID3_FACE_IMAGE hImage,
        bool flipHorizontally,
        bool flipVertically)

Parameters

> `hImage` ID3_FACE_IMAGE
> in Handle to the Image object.
> `flipHorizontally` bool
> in Value indicating whether the image should be flipped horizontally.
> `flipVertically` bool
> in Value indicating whether the image should be flipped vertically.

Returns

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