Resource Base
Table of contents

NormalizedImageResultItem

The NormalizedImageResultItem interface extends the CapturedResultItem interface and represents a normalized image result item.

interface NormalizedImageResultItem extends CapturedResultItem {
    imageData: DSImageData;
    location: Quadrilateral;
    toCanvas(): HTMLCanvasElement;
    toImage(MIMEType: "image/png" | "image/jpeg"): HTMLImageElement;
    toBlob(MIMEType: "image/png" | "image/jpeg"): Promise<Blob>;
    saveToFile(name: string, download?: boolean): Promise<File>;
}

imageData

The image data for the normalized image result.

See Also

DSImageData

location

The location where the normalized image was extracted from within the original image, represented as a quadrilateral.

See Also

Quadrilateral

toCanvas

Converts the normalized image data into an HTMLCanvasElement for display or further manipulation in web applications.

See Also

HTMLCanvasElement

toImage

Converts the normalized image data into an HTMLImageElement of a specified MIME type (‘image/png’ or ‘image/jpeg’).

See Also

HTMLImageElement

toBlob

Converts the normalized image data into a Blob object of a specified MIME type (‘image/png’ or ‘image/jpeg’).

See Also

Blob

saveToFile

Saves the normalized image to a File object in memory, optionally downloading it to the user’s device.

Parameters

name: the name to assign to the File object.

download optional. If true, triggers the download of the file once created; otherwise, retains the file in memory.

See Also

File

This page is compatible for:

Version 1.0

Is this page helpful?

YesYes NoNo

In this article:

latest version

    • Latest version(2.2.10)
    • Version 2.x
      • Version 2.0.21
      • Version 2.0.20
      • Version 2.0.11
    • Version 1.x
      • Version 1.0.12
      • Version 1.0.11
      • Version 1.0.10
      • Version 1.0.0
    Change +
    © 2003–2024 Dynamsoft. All rights reserved.
    Privacy Statement / Site Map / Home / Purchase / Support