API Reference
QrDecoder
Decodes QR codes from a module grid or from raw pixels (clean images).
Inheritance
- Object
- QrDecoder
Remarks
Current scope: byte + kanji payloads on clean/generated images and clean on-screen QR codes.
Methods
public static Boolean TryDecode(BitMatrix modules, out QrDecoded result) #BooleanAttempts to decode a QR code from an exact module grid (no quiet zone).
Parameters
- modules CodeGlyphX.BitMatrix
- Square matrix of QR modules (dark = true).
- result CodeGlyphX.QrDecoded@
- Decoded payload.
Returns
true when decoding succeeded; otherwise false.
public static Boolean TryDecode(BitMatrix modules, out QrDecoded result, CancellationToken cancellationToken) #BooleanAttempts to decode a QR code from an exact module grid (no quiet zone), with diagnostics.
Parameters
- modules CodeGlyphX.BitMatrix
- Square matrix of QR modules (dark = true).
- result CodeGlyphX.QrDecoded@
- Decoded payload.
- info CodeGlyphX.QrDecodeInfo@
- Decode diagnostics.
Returns
true when decoding succeeded; otherwise false.
TryDecode(CodeGlyphX.BitMatrix modules, CodeGlyphX.QrDecoded@ result, System.Threading.CancellationToken cancellationToken) #Attempts to decode a QR code from an exact module grid, with cancellation.
Parameters
- modules CodeGlyphX.BitMatrix
- result CodeGlyphX.QrDecoded@
- cancellationToken System.Threading.CancellationToken
public static Boolean TryDecode(BitMatrix modules, out QrDecoded result, out QrDecodeInfo info, CancellationToken cancellationToken) #BooleanAttempts to decode a QR code from an exact module grid, with diagnostics and cancellation.
Parameters
- modules CodeGlyphX.BitMatrix
- result CodeGlyphX.QrDecoded@
- info CodeGlyphX.QrDecodeInfo@
- cancellationToken System.Threading.CancellationToken
public static Boolean TryDecode(Byte[] pixels, Int32 width, Int32 height, Int32 stride, PixelFormat fmt, out QrDecoded result) #BooleanAttempts to decode a QR code from raw pixel data (best-effort, clean inputs).
Parameters
- pixels System.ReadOnlySpan{System.Byte}
- Pixel buffer.
- width System.Int32
- Image width in pixels.
- height System.Int32
- Image height in pixels.
- stride System.Int32
- Bytes per row.
- fmt CodeGlyphX.PixelFormat
- Pixel format (4 bytes per pixel).
- result CodeGlyphX.QrDecoded@
- Decoded payload.
Returns
true when decoding succeeded; otherwise false.
public static Boolean TryDecode(Byte[] pixels, Int32 width, Int32 height, Int32 stride, PixelFormat fmt, out QrDecoded result, out QrPixelDecodeInfo info) #BooleanAttempts to decode a QR code from raw pixel data (best-effort, clean inputs) using the specified profile.
Parameters
- pixels System.ReadOnlySpan{System.Byte}
- width System.Int32
- height System.Int32
- stride System.Int32
- fmt CodeGlyphX.PixelFormat
- result CodeGlyphX.QrDecoded@
- options CodeGlyphX.QrPixelDecodeOptions
public static Boolean TryDecode(Byte[] pixels, Int32 width, Int32 height, Int32 stride, PixelFormat fmt, out QrDecoded result, out QrPixelDecodeInfo info, QrPixelDecodeOptions options) #BooleanAttempts to decode a QR code from raw pixel data (best-effort, clean inputs) using the specified profile, with cancellation.
Parameters
- pixels System.ReadOnlySpan{System.Byte}
- width System.Int32
- height System.Int32
- stride System.Int32
- fmt CodeGlyphX.PixelFormat
- result CodeGlyphX.QrDecoded@
- options CodeGlyphX.QrPixelDecodeOptions
- cancellationToken System.Threading.CancellationToken
TryDecode(System.ReadOnlySpan{System.Byte} pixels, System.Int32 width, System.Int32 height, System.Int32 stride, CodeGlyphX.PixelFormat fmt, CodeGlyphX.QrDecoded@ result, CodeGlyphX.QrPixelDecodeInfo@ info) #Attempts to decode a QR code from raw pixel data (best-effort, clean inputs), with diagnostics.
Parameters
- pixels System.ReadOnlySpan{System.Byte}
- width System.Int32
- height System.Int32
- stride System.Int32
- fmt CodeGlyphX.PixelFormat
- result CodeGlyphX.QrDecoded@
- info CodeGlyphX.QrPixelDecodeInfo@
TryDecode(System.ReadOnlySpan{System.Byte} pixels, System.Int32 width, System.Int32 height, System.Int32 stride, CodeGlyphX.PixelFormat fmt, CodeGlyphX.QrDecoded@ result, CodeGlyphX.QrPixelDecodeInfo@ info, CodeGlyphX.QrPixelDecodeOptions options) #Attempts to decode a QR code from raw pixel data (best-effort, clean inputs), with diagnostics and profile options.
Parameters
- pixels System.ReadOnlySpan{System.Byte}
- width System.Int32
- height System.Int32
- stride System.Int32
- fmt CodeGlyphX.PixelFormat
- result CodeGlyphX.QrDecoded@
- info CodeGlyphX.QrPixelDecodeInfo@
- options CodeGlyphX.QrPixelDecodeOptions
public static Boolean TryDecode(Byte[] pixels, Int32 width, Int32 height, Int32 stride, PixelFormat fmt, out QrDecoded result, out QrPixelDecodeInfo info, QrPixelDecodeOptions options, CancellationToken cancellationToken) #BooleanAttempts to decode a QR code from raw pixel data (best-effort, clean inputs), with diagnostics, profile options, and cancellation.
Parameters
- pixels System.ReadOnlySpan{System.Byte}
- width System.Int32
- height System.Int32
- stride System.Int32
- fmt CodeGlyphX.PixelFormat
- result CodeGlyphX.QrDecoded@
- info CodeGlyphX.QrPixelDecodeInfo@
- options CodeGlyphX.QrPixelDecodeOptions
- cancellationToken System.Threading.CancellationToken
TryDecode(System.Byte[] pixels, System.Int32 width, System.Int32 height, System.Int32 stride, CodeGlyphX.PixelFormat fmt, CodeGlyphX.QrDecoded@ result) #Attempts to decode a QR code from raw pixel data (best-effort, clean inputs).
Parameters
- pixels System.Byte[]
- Pixel buffer.
- width System.Int32
- Image width in pixels.
- height System.Int32
- Image height in pixels.
- stride System.Int32
- Bytes per row.
- fmt CodeGlyphX.PixelFormat
- Pixel format (4 bytes per pixel).
- result CodeGlyphX.QrDecoded@
- Decoded payload.
Returns
true when decoding succeeded; otherwise false.
TryDecode(System.Byte[] pixels, System.Int32 width, System.Int32 height, System.Int32 stride, CodeGlyphX.PixelFormat fmt, CodeGlyphX.QrDecoded@ result, CodeGlyphX.QrPixelDecodeOptions options) #Attempts to decode a QR code from raw pixel data (best-effort, clean inputs) using the specified profile.
Parameters
- pixels System.Byte[]
- width System.Int32
- height System.Int32
- stride System.Int32
- fmt CodeGlyphX.PixelFormat
- result CodeGlyphX.QrDecoded@
- options CodeGlyphX.QrPixelDecodeOptions
TryDecode(System.Byte[] pixels, System.Int32 width, System.Int32 height, System.Int32 stride, CodeGlyphX.PixelFormat fmt, CodeGlyphX.QrDecoded@ result, CodeGlyphX.QrPixelDecodeOptions options, System.Threading.CancellationToken cancellationToken) #Attempts to decode a QR code from raw pixel data (best-effort, clean inputs) using the specified profile, with cancellation.
Parameters
- pixels System.Byte[]
- width System.Int32
- height System.Int32
- stride System.Int32
- fmt CodeGlyphX.PixelFormat
- result CodeGlyphX.QrDecoded@
- options CodeGlyphX.QrPixelDecodeOptions
- cancellationToken System.Threading.CancellationToken
TryDecode(System.Byte[] pixels, System.Int32 width, System.Int32 height, System.Int32 stride, CodeGlyphX.PixelFormat fmt, CodeGlyphX.QrDecoded@ result, CodeGlyphX.QrPixelDecodeInfo@ info) #Attempts to decode a QR code from raw pixel data (best-effort, clean inputs), with diagnostics.
Parameters
- pixels System.Byte[]
- width System.Int32
- height System.Int32
- stride System.Int32
- fmt CodeGlyphX.PixelFormat
- result CodeGlyphX.QrDecoded@
- info CodeGlyphX.QrPixelDecodeInfo@
TryDecode(System.Byte[] pixels, System.Int32 width, System.Int32 height, System.Int32 stride, CodeGlyphX.PixelFormat fmt, CodeGlyphX.QrDecoded@ result, CodeGlyphX.QrPixelDecodeInfo@ info, CodeGlyphX.QrPixelDecodeOptions options) #Attempts to decode a QR code from raw pixel data (best-effort, clean inputs), with diagnostics and profile options.
Parameters
- pixels System.Byte[]
- width System.Int32
- height System.Int32
- stride System.Int32
- fmt CodeGlyphX.PixelFormat
- result CodeGlyphX.QrDecoded@
- info CodeGlyphX.QrPixelDecodeInfo@
- options CodeGlyphX.QrPixelDecodeOptions
TryDecode(System.Byte[] pixels, System.Int32 width, System.Int32 height, System.Int32 stride, CodeGlyphX.PixelFormat fmt, CodeGlyphX.QrDecoded@ result, CodeGlyphX.QrPixelDecodeInfo@ info, CodeGlyphX.QrPixelDecodeOptions options, System.Threading.CancellationToken cancellationToken) #Attempts to decode a QR code from raw pixel data (best-effort, clean inputs), with diagnostics, profile options, and cancellation.
Parameters
- pixels System.Byte[]
- width System.Int32
- height System.Int32
- stride System.Int32
- fmt CodeGlyphX.PixelFormat
- result CodeGlyphX.QrDecoded@
- info CodeGlyphX.QrPixelDecodeInfo@
- options CodeGlyphX.QrPixelDecodeOptions
- cancellationToken System.Threading.CancellationToken
public static Boolean TryDecodeAll(Byte[] pixels, Int32 width, Int32 height, Int32 stride, PixelFormat fmt, out QrDecoded[] results) #BooleanAttempts to decode all QR codes from raw pixel data (best-effort, clean inputs).
Parameters
- pixels System.ReadOnlySpan{System.Byte}
- width System.Int32
- height System.Int32
- stride System.Int32
- fmt CodeGlyphX.PixelFormat
- results CodeGlyphX.QrDecoded[]@
public static Boolean TryDecodeAll(Byte[] pixels, Int32 width, Int32 height, Int32 stride, PixelFormat fmt, out QrDecoded[] results, out QrPixelDecodeInfo info) #BooleanAttempts to decode all QR codes from raw pixel data (best-effort, clean inputs) using the specified profile.
Parameters
- pixels System.ReadOnlySpan{System.Byte}
- width System.Int32
- height System.Int32
- stride System.Int32
- fmt CodeGlyphX.PixelFormat
- results CodeGlyphX.QrDecoded[]@
- options CodeGlyphX.QrPixelDecodeOptions
public static Boolean TryDecodeAll(Byte[] pixels, Int32 width, Int32 height, Int32 stride, PixelFormat fmt, out QrDecoded[] results, out QrPixelDecodeInfo info, QrPixelDecodeOptions options) #BooleanAttempts to decode all QR codes from raw pixel data (best-effort, clean inputs) using the specified profile, with cancellation.
Parameters
- pixels System.ReadOnlySpan{System.Byte}
- width System.Int32
- height System.Int32
- stride System.Int32
- fmt CodeGlyphX.PixelFormat
- results CodeGlyphX.QrDecoded[]@
- options CodeGlyphX.QrPixelDecodeOptions
- cancellationToken System.Threading.CancellationToken
TryDecodeAll(System.ReadOnlySpan{System.Byte} pixels, System.Int32 width, System.Int32 height, System.Int32 stride, CodeGlyphX.PixelFormat fmt, CodeGlyphX.QrDecoded[]@ results, CodeGlyphX.QrPixelDecodeInfo@ info) #Attempts to decode all QR codes from raw pixel data (best-effort, clean inputs), with diagnostics.
Parameters
- pixels System.ReadOnlySpan{System.Byte}
- width System.Int32
- height System.Int32
- stride System.Int32
- fmt CodeGlyphX.PixelFormat
- results CodeGlyphX.QrDecoded[]@
- info CodeGlyphX.QrPixelDecodeInfo@
TryDecodeAll(System.ReadOnlySpan{System.Byte} pixels, System.Int32 width, System.Int32 height, System.Int32 stride, CodeGlyphX.PixelFormat fmt, CodeGlyphX.QrDecoded[]@ results, CodeGlyphX.QrPixelDecodeInfo@ info, CodeGlyphX.QrPixelDecodeOptions options) #Attempts to decode all QR codes from raw pixel data (best-effort, clean inputs), with diagnostics and profile options.
Parameters
- pixels System.ReadOnlySpan{System.Byte}
- width System.Int32
- height System.Int32
- stride System.Int32
- fmt CodeGlyphX.PixelFormat
- results CodeGlyphX.QrDecoded[]@
- info CodeGlyphX.QrPixelDecodeInfo@
- options CodeGlyphX.QrPixelDecodeOptions
public static Boolean TryDecodeAll(Byte[] pixels, Int32 width, Int32 height, Int32 stride, PixelFormat fmt, out QrDecoded[] results, out QrPixelDecodeInfo info, QrPixelDecodeOptions options, CancellationToken cancellationToken) #BooleanAttempts to decode all QR codes from raw pixel data (best-effort, clean inputs), with diagnostics, profile options, and cancellation.
Parameters
- pixels System.ReadOnlySpan{System.Byte}
- width System.Int32
- height System.Int32
- stride System.Int32
- fmt CodeGlyphX.PixelFormat
- results CodeGlyphX.QrDecoded[]@
- info CodeGlyphX.QrPixelDecodeInfo@
- options CodeGlyphX.QrPixelDecodeOptions
- cancellationToken System.Threading.CancellationToken
TryDecodeAll(System.Byte[] pixels, System.Int32 width, System.Int32 height, System.Int32 stride, CodeGlyphX.PixelFormat fmt, CodeGlyphX.QrDecoded[]@ results) #Attempts to decode all QR codes from raw pixel data (best-effort, clean inputs).
Parameters
- pixels System.Byte[]
- width System.Int32
- height System.Int32
- stride System.Int32
- fmt CodeGlyphX.PixelFormat
- results CodeGlyphX.QrDecoded[]@
TryDecodeAll(System.Byte[] pixels, System.Int32 width, System.Int32 height, System.Int32 stride, CodeGlyphX.PixelFormat fmt, CodeGlyphX.QrDecoded[]@ results, CodeGlyphX.QrPixelDecodeOptions options) #Attempts to decode all QR codes from raw pixel data (best-effort, clean inputs) using the specified profile.
Parameters
- pixels System.Byte[]
- width System.Int32
- height System.Int32
- stride System.Int32
- fmt CodeGlyphX.PixelFormat
- results CodeGlyphX.QrDecoded[]@
- options CodeGlyphX.QrPixelDecodeOptions
TryDecodeAll(System.Byte[] pixels, System.Int32 width, System.Int32 height, System.Int32 stride, CodeGlyphX.PixelFormat fmt, CodeGlyphX.QrDecoded[]@ results, CodeGlyphX.QrPixelDecodeOptions options, System.Threading.CancellationToken cancellationToken) #Attempts to decode all QR codes from raw pixel data (best-effort, clean inputs) using the specified profile, with cancellation.
Parameters
- pixels System.Byte[]
- width System.Int32
- height System.Int32
- stride System.Int32
- fmt CodeGlyphX.PixelFormat
- results CodeGlyphX.QrDecoded[]@
- options CodeGlyphX.QrPixelDecodeOptions
- cancellationToken System.Threading.CancellationToken
TryDecodeAll(System.Byte[] pixels, System.Int32 width, System.Int32 height, System.Int32 stride, CodeGlyphX.PixelFormat fmt, CodeGlyphX.QrDecoded[]@ results, CodeGlyphX.QrPixelDecodeInfo@ info) #Attempts to decode all QR codes from raw pixel data (best-effort, clean inputs), with diagnostics.
Parameters
- pixels System.Byte[]
- width System.Int32
- height System.Int32
- stride System.Int32
- fmt CodeGlyphX.PixelFormat
- results CodeGlyphX.QrDecoded[]@
- info CodeGlyphX.QrPixelDecodeInfo@
TryDecodeAll(System.Byte[] pixels, System.Int32 width, System.Int32 height, System.Int32 stride, CodeGlyphX.PixelFormat fmt, CodeGlyphX.QrDecoded[]@ results, CodeGlyphX.QrPixelDecodeInfo@ info, CodeGlyphX.QrPixelDecodeOptions options) #Attempts to decode all QR codes from raw pixel data (best-effort, clean inputs), with diagnostics and profile options.
Parameters
- pixels System.Byte[]
- width System.Int32
- height System.Int32
- stride System.Int32
- fmt CodeGlyphX.PixelFormat
- results CodeGlyphX.QrDecoded[]@
- info CodeGlyphX.QrPixelDecodeInfo@
- options CodeGlyphX.QrPixelDecodeOptions
TryDecodeAll(System.Byte[] pixels, System.Int32 width, System.Int32 height, System.Int32 stride, CodeGlyphX.PixelFormat fmt, CodeGlyphX.QrDecoded[]@ results, CodeGlyphX.QrPixelDecodeInfo@ info, CodeGlyphX.QrPixelDecodeOptions options, System.Threading.CancellationToken cancellationToken) #Attempts to decode all QR codes from raw pixel data (best-effort, clean inputs), with diagnostics, profile options, and cancellation.
Parameters
- pixels System.Byte[]
- width System.Int32
- height System.Int32
- stride System.Int32
- fmt CodeGlyphX.PixelFormat
- results CodeGlyphX.QrDecoded[]@
- info CodeGlyphX.QrPixelDecodeInfo@
- options CodeGlyphX.QrPixelDecodeOptions
- cancellationToken System.Threading.CancellationToken