Frame Data
Defined under the namespace Scandit.Datacapture.Core
- FrameData
interface FrameData
Added in version 6.15.0
Interface for holding frame data from one source (camera). The concrete type is tied to the frame source that produces the frames.
- isFrameSourceMirrored
readonly isFrameSourceMirrored: boolean
Added in version 6.15.0
Indicates whether the frame source was mirrored when the frame was captured.
- getData()
getData(): Promise<Uint8ClampedArray | null>
Added in version 6.15.0
An asynchronous function to retrieve a Uint8ClampedArray holding the frame data.
- toBlob(type, quality)
toBlob(type?: string, quality?: number): Promise<Blob | null>
Added in version 6.15.0
An asynchronous function to convert this frame data into a Blob object. A Blob instance can easily be turned into the source of an image or into a file to download. The optional type and quality parameters are the same as the one of the canvas.toBlob function.