Houjie
2025-07-24 52a3ff1bce1417b39f6872d8e8cb378e9c2ccc6f
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
import LuminanceSource from '../core/LuminanceSource';
/**
 * @deprecated Moving to @zxing/browser
 */
export declare class HTMLCanvasElementLuminanceSource extends LuminanceSource {
    private canvas;
    private buffer;
    private static DEGREE_TO_RADIANS;
    private static FRAME_INDEX;
    private tempCanvasElement;
    constructor(canvas: HTMLCanvasElement, doAutoInvert?: boolean);
    private static makeBufferFromCanvasImageData;
    private static toGrayscaleBuffer;
    getRow(y: number, row: Uint8ClampedArray): Uint8ClampedArray;
    getMatrix(): Uint8ClampedArray;
    isCropSupported(): boolean;
    crop(left: number, top: number, width: number, height: number): LuminanceSource;
    /**
     * This is always true, since the image is a gray-scale image.
     *
     * @return true
     */
    isRotateSupported(): boolean;
    rotateCounterClockwise(): LuminanceSource;
    rotateCounterClockwise45(): LuminanceSource;
    private getTempCanvasElement;
    private rotate;
    invert(): LuminanceSource;
}