• Decode a previously encoded timestamp from a canvas

    Parameters

    • context: CanvasRenderingContext2D
    • lineWidth: number

      width of the line in pixels

    • Optional blocksPerRow: number

      number of blocks in the line, 32 by default

    • Optional tolerance: number

      percentage of tolerance for the black and white threshold, 0.2 by default

    Returns Date | undefined

    The Date object representing the timestamp or null if the timestamp cannot be decoded

Generated using TypeDoc