Version: 1.0.01.0.11.0.21.0.31.0.41.0.51.0.61.0.71.0.81.1.01.2.01.2.11.2.21.3.01.3.11.3.21.4.01.4.11.4.21.4.31.4.41.4.51.4.61.4.72.0.02.1.02.1.12.2.02.2.12.3.02.4.02.4.12.4.22.4.32.4.42.4.52.5.02.5.13.0.03.1.03.1.13.1.23.1.33.2.04.0.04.1.04.1.14.2.04.2.14.2.24.3.04.4.04.4.14.4.24.5.04.5.14.6.04.6.14.6.24.6.35.0.05.0.15.1.05.1.15.1.25.1.35.1.45.2.05.3.0-beta5.3.05.3.15.3.25.4.05.4.15.4.25.5.05.5.25.5.35.6.05.7.05.7.15.8.05.8.15.8.25.9.05.9.15.9.25.9.35.10.05.11.05.11.15.12.05.12.15.12.2-beta.15.12.25.13.05.13.15.13.2-beta.15.13.25.13.35.13.45.13.55.14.0-beta.15.14.05.14.1
/**
* A configuration object to define the properties of an image to be scanned.
*/
export interface ImageSettings {
* The width of the image (columns of pixels).
readonly width: number;
* The height of the image (rows of pixels).
readonly height: number;
* The format of the pixel data, meaning the mapping of array bytes to image pixels.
readonly format: ImageSettings.Format;
}
export namespace ImageSettings {
// Warning: the values of Format are important as the engine web worker relies on them without type checking.
* Image bytes format/layout.
export enum Format {
* Single-channel 8-bit gray scale image.
GRAY_8U = 0,
* RGB image with 8 bits per color channel.
RGB_8U = 1,
* RGBA image with 8 bits per color channel.
RGBA_8U = 2