Table of contents

EnhancedImageResultItem

The EnhancedImageResultItem interface extends the CapturedResultItem interface and represents a enhanced image result item.

interface EnhancedImageResultItem extends CapturedResultItem {
    imageData: DSImageData;
    location: Quadrilateral;
    toCanvas(): HTMLCanvasElement;
    toImage(MIMEType: "image/png" | "image/jpeg"): HTMLImageElement;
    toBlob(MIMEType: "image/png" | "image/jpeg"): Promise<Blob>;
}

imageData

The image data for the enhanced image result.

See Also

DSImageData

location

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

See Also

Quadrilateral

toCanvas

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

See Also

HTMLCanvasElement

toImage

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

See Also

HTMLImageElement

toBlob

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

See Also

Blob

This page is compatible for:

Is this page helpful?

YesYes NoNo

In this article: