ixfx
    Preparing search index...

    Type Alias ManualCaptureOpts

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

    Properties

    canvasEl?: HTMLCanvasElement

    If specified, this is the canvas captured to

    postCaptureDraw?: (
        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.

    showCanvas?: 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