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

# Image.resizeTo Method

Module: Image

## Definition

Resizes the image to the specified width and height.

Python

    resize_to(self, width: int, height: int, dst_image: Image) -> None

Parameters

> `width` int
> in The new width, in pixels.
> `height` int
> in The new height, in pixels.
> `dst_image` Image
> in The destination image that receives the resized image.

Exceptions

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

Dart

    void resizeTo(int width, int height, Image dstImage)

Parameters

> `width` int
> in The new width, in pixels.
> `height` int
> in The new height, in pixels.
> `dstImage` Image
> in The destination image that receives the resized image.

Exceptions

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

C#

    public void ResizeTo(int width, int height, Image dstImage)

Parameters

> `width` int
> in The new width, in pixels.
> `height` int
> in The new height, in pixels.
> `dstImage` Image
> in The destination image that receives the resized image.

Exceptions

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

Java

    public void resizeTo(int width, int height, Image dstImage) throws FaceException

Parameters

> `width` int
> in The new width, in pixels.
> `height` int
> in The new height, in pixels.
> `dstImage` Image
> in The destination image that receives the resized image.

Exceptions

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

Swift

    public func resizeTo(width: Int32, height: Int32, dstImage: Image) throws

Parameters

> `width` Int32
> in The new width, in pixels.
> `height` Int32
> in The new height, in pixels.
> `dstImage` Image
> in The destination image that receives the resized image.

Exceptions

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

C

    int id3FaceImage_ResizeTo (
        ID3_FACE_IMAGE hImage,
        int width,
        int height,
        ID3_FACE_IMAGE hDstImage)

Parameters

> `hImage` ID3_FACE_IMAGE
> in Handle to the Image object.
> `width` int
> in The new width, in pixels.
> `height` int
> in The new height, in pixels.
> `hDstImage` ID3_FACE_IMAGE
> in The destination image that receives the resized image.

Returns

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