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

# DocumentImage.resizeTo Method

Module: DocumentImage

## Definition

Resizes the image to the specified width and height.

Python

    resize_to(self, width: int, height: int, dst_document_image: DocumentImage) -> None

Parameters

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

Exceptions

> DocumentException
> An error has occurred during Document Library execution.

Dart

    void resizeTo(int width, int height, DocumentImage dstDocumentImage)

Parameters

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

Exceptions

> DocumentException
> An error has occurred during Document Library execution.

C#

    public void ResizeTo(int width, int height, DocumentImage dstDocumentImage)

Parameters

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

Exceptions

> DocumentException
> An error has occurred during Document Library execution.

Java

    public void resizeTo(int width, int height, DocumentImage dstDocumentImage) throws DocumentException

Parameters

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

Exceptions

> DocumentException
> An error has occurred during Document Library execution.

Swift

    public func resizeTo(width: Int32, height: Int32, dstDocumentImage: DocumentImage) throws

Parameters

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

Exceptions

> DocumentException
> An error has occurred during Document Library execution.

C

    int id3DocumentImage_ResizeTo (
        ID3_DOCUMENT_IMAGE hDocumentImage,
        int width,
        int height,
        ID3_DOCUMENT_IMAGE hDstDocumentImage)

Parameters

> `hDocumentImage` ID3_DOCUMENT_IMAGE
> in Handle to the DocumentImage object.
> `width` int
> in The new width, in pixels.
> `height` int
> in The new height, in pixels.
> `hDstDocumentImage` ID3_DOCUMENT_IMAGE
> in The destination image that receives the resized image.

Returns

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