layout | title | description | keywords | needAutoGenerateSidebar | noTitleIndex |
---|---|---|---|---|---|
default-layout |
Interface NormalizedImageResultItem - Dynamsoft Document Normalizer JS Edition API Reference |
This page shows the JS edition of the interface NormalizedImageResultItem. |
normalized image result, JS |
true |
true |
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>;
}
The image data for the normalized image result.
See Also
The location where the normalized image was extracted from within the original image, represented as a quadrilateral.
See Also
Converts the normalized image data into an HTMLCanvasElement for display or further manipulation in web applications.
See Also
Converts the normalized image data into an HTMLImageElement of a specified MIME type ('image/png' or 'image/jpeg').
See Also
Converts the normalized image data into a Blob object of a specified MIME type ('image/png' or 'image/jpeg').
See Also
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