ixfx
    Preparing search index...

    Type Alias ManualCaptureOpts

    ManualCaptureOpts: {
        canvasEl?: HTMLCanvasElement;
        postCaptureDraw?: (
            ctx: CanvasRenderingContext2D,
            width: number,
            height: number,
        ) => void;
        showCanvas?: boolean;
    }

    Type declaration

    • Optional ReadonlycanvasEl?: HTMLCanvasElement

      If specified, this is the canvas captured to

    • Optional ReadonlypostCaptureDraw?: (ctx: CanvasRenderingContext2D, width: number, height: number) => void

      If specified, this function will be called after ImageData is captured from the intermediate canvs. This allows for drawing on top of the captured image.

    • Optional ReadonlyshowCanvas?: boolean

      If true, the intermediate canvas is shown The intermediate canvas is where captures from the source are put in order to get the ImageData