zxing-wasm
    Preparing search index...

    Interface WriteResultExperimental

    Result of writing a barcode.

    The final form of this API is not yet settled and may change.

    interface WriteResult {
        error: string;
        image: null | Blob;
        svg: string;
        utf8: string;
    }

    Hierarchy

    • Omit<ZXingWriteResult, "image">
      • WriteResult
    Index

    Properties

    Properties

    error: string

    Encoding error. If there's no error, this will be an empty string "".

    image: null | Blob

    The encoded barcode as an image blob. If some error happens, this will be null.

    svg: string

    The encoded barcode as a scalable vector graphics (SVG) string.

    utf8: string

    The encoded barcode as a utf8 string, using " ", "▀", "▄", "█".