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
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
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
Remarks
Introduced in Dynamsoft Barcode Reader Bundle version 11.2.2000 and Dynamsoft Capture Vision Bundle version 3.2.2000.