Table of contents

OriginalImageResultItem

The OriginalImageResultItem interface extends the CapturedResultItem interface and represents an original image result item.

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

imageData

The image data associated with this result item.

toCanvas

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

See Also

HTMLCanvasElement

Remarks

Introduced in Dynamsoft Barcode Reader Bundle version 11.2.2000 and Dynamsoft Capture Vision Bundle version 3.2.2000.

toImage

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

See Also

HTMLImageElement

Remarks

Introduced in Dynamsoft Barcode Reader Bundle version 11.2.2000 and Dynamsoft Capture Vision Bundle version 3.2.2000.

toBlob

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

See Also

Blob

Remarks

Introduced in Dynamsoft Barcode Reader Bundle version 11.2.2000 and Dynamsoft Capture Vision Bundle version 3.2.2000.

This page is compatible for:

Is this page helpful?

YesYes NoNo

In this article: