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

# Image.flipTo Method

Module: Image

## Definition

Flips the image.

Python

    flip_to(self, flip_horizontally: bool, flip_vertically: bool, dst_image: Image) -> 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.
> `dst_image` Image
> in The destination Image object that receives the flipped image.

Exceptions

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

Dart

    void flipTo(bool flipHorizontally, bool flipVertically, Image dstImage)

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.
> `dstImage` Image
> in The destination Image object that receives the flipped image.

Exceptions

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

C#

    public void FlipTo(bool flipHorizontally, bool flipVertically, Image dstImage)

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.
> `dstImage` Image
> in The destination Image object that receives the flipped image.

Exceptions

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

Java

    public void flipTo(boolean flipHorizontally, boolean flipVertically, Image dstImage) 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.
> `dstImage` Image
> in The destination Image object that receives the flipped image.

Exceptions

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

Swift

    public func flipTo(flipHorizontally: Bool, flipVertically: Bool, dstImage: Image) 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.
> `dstImage` Image
> in The destination Image object that receives the flipped image.

Exceptions

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

C

    int id3FaceImage_FlipTo (
        ID3_FACE_IMAGE hImage,
        bool flipHorizontally,
        bool flipVertically,
        ID3_FACE_IMAGE hDstImage)

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.
> `hDstImage` ID3_FACE_IMAGE
> in The destination Image object that receives the flipped image.

Returns

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