@ceeblue/web-utils
    Preparing search index...

    Function decodeTimestamp

    • Decode a previously encoded timestamp from a canvas

      Parameters

      • context: CanvasRenderingContext2D
      • lineWidth: number

        width of the line in pixels

      • tolerance: number = 0.2

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

      Returns Date | null

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