API Reference
MicroQrDecoder
Decodes Micro QR codes from a module grid.
Inheritance
- Object
- MicroQrDecoder
Methods
public static Boolean TryDecode(BitMatrix modules, out MicroQrDecoded result) #BooleanAttempts to decode a Micro QR code from an exact module grid (no quiet zone).
Parameters
- modules CodeGlyphX.BitMatrix
- Square matrix of Micro QR modules (dark = true).
- result CodeGlyphX.MicroQrDecoded@
- Decoded payload.
Returns
true when decoding succeeded; otherwise false.
public static Boolean TryDecode(ReadOnlySpan<Byte> pixels, Int32 width, Int32 height, Int32 stride, PixelFormat format, out MicroQrDecoded decoded) #BooleanAttempts to recognize and decode a Micro QR symbol from RGBA32 or BGRA32 pixels.
Parameters
- pixels System.ReadOnlySpan{System.Byte}
- width System.Int32
- height System.Int32
- stride System.Int32
- format CodeGlyphX.PixelFormat
- decoded CodeGlyphX.MicroQrDecoded@
public static Boolean TryDecode(ReadOnlySpan<Byte> pixels, Int32 width, Int32 height, Int32 stride, PixelFormat format, CancellationToken cancellationToken, out MicroQrDecoded decoded) #BooleanAttempts to recognize and decode a Micro QR symbol from RGBA32 or BGRA32 pixels, with cancellation.
Parameters
- pixels System.ReadOnlySpan{System.Byte}
- width System.Int32
- height System.Int32
- stride System.Int32
- format CodeGlyphX.PixelFormat
- cancellationToken System.Threading.CancellationToken
- decoded CodeGlyphX.MicroQrDecoded@
public static Boolean TryDecode(ReadOnlySpan<Byte> pixels, Int32 width, Int32 height, Int32 stride, PixelFormat format, out MicroQrDecoded decoded, out MicroQrPixelDecodeInfo info) #BooleanAttempts to recognize and decode a Micro QR symbol from RGBA32 or BGRA32 pixels and returns recognition metadata.
Parameters
- pixels System.ReadOnlySpan{System.Byte}
- width System.Int32
- height System.Int32
- stride System.Int32
- format CodeGlyphX.PixelFormat
- decoded CodeGlyphX.MicroQrDecoded@
- info CodeGlyphX.MicroQrPixelDecodeInfo@
public static Boolean TryDecode(ReadOnlySpan<Byte> pixels, Int32 width, Int32 height, Int32 stride, PixelFormat format, CancellationToken cancellationToken, out MicroQrDecoded decoded, out MicroQrPixelDecodeInfo info) #BooleanAttempts to recognize and decode a Micro QR symbol from RGBA32 or BGRA32 pixels, with cancellation and recognition metadata.
Parameters
- pixels System.ReadOnlySpan{System.Byte}
- width System.Int32
- height System.Int32
- stride System.Int32
- format CodeGlyphX.PixelFormat
- cancellationToken System.Threading.CancellationToken
- decoded CodeGlyphX.MicroQrDecoded@
- info CodeGlyphX.MicroQrPixelDecodeInfo@
public static Boolean TryDecode(Byte[] pixels, Int32 width, Int32 height, Int32 stride, PixelFormat format, out MicroQrDecoded decoded) #BooleanAttempts to recognize and decode a Micro QR symbol from RGBA32 or BGRA32 pixels.
Parameters
- pixels System.Byte[]
- width System.Int32
- height System.Int32
- stride System.Int32
- format CodeGlyphX.PixelFormat
- decoded CodeGlyphX.MicroQrDecoded@
public static Boolean TryDecode(Byte[] pixels, Int32 width, Int32 height, Int32 stride, PixelFormat format, CancellationToken cancellationToken, out MicroQrDecoded decoded) #BooleanAttempts to recognize and decode a Micro QR symbol from RGBA32 or BGRA32 pixels, with cancellation.
Parameters
- pixels System.Byte[]
- width System.Int32
- height System.Int32
- stride System.Int32
- format CodeGlyphX.PixelFormat
- cancellationToken System.Threading.CancellationToken
- decoded CodeGlyphX.MicroQrDecoded@
public static Boolean TryDecode(Byte[] pixels, Int32 width, Int32 height, Int32 stride, PixelFormat format, out MicroQrDecoded decoded, out MicroQrPixelDecodeInfo info) #BooleanAttempts to recognize and decode a Micro QR symbol from RGBA32 or BGRA32 pixels and returns recognition metadata.
Parameters
- pixels System.Byte[]
- width System.Int32
- height System.Int32
- stride System.Int32
- format CodeGlyphX.PixelFormat
- decoded CodeGlyphX.MicroQrDecoded@
- info CodeGlyphX.MicroQrPixelDecodeInfo@
public static Boolean TryDecode(Byte[] pixels, Int32 width, Int32 height, Int32 stride, PixelFormat format, CancellationToken cancellationToken, out MicroQrDecoded decoded, out MicroQrPixelDecodeInfo info) #BooleanAttempts to recognize and decode a Micro QR symbol from RGBA32 or BGRA32 pixels, with cancellation and recognition metadata.
Parameters
- pixels System.Byte[]
- width System.Int32
- height System.Int32
- stride System.Int32
- format CodeGlyphX.PixelFormat
- cancellationToken System.Threading.CancellationToken
- decoded CodeGlyphX.MicroQrDecoded@
- info CodeGlyphX.MicroQrPixelDecodeInfo@
public static Boolean TryDecodeImage(Byte[] encodedImage, out MicroQrDecoded decoded, ImageDecodeOptions options = null, CancellationToken cancellationToken = null) #BooleanAttempts to decode an encoded raster image supported by the managed image reader and recognize a Micro QR symbol.
Parameters
- encodedImage System.Byte[]
- decoded CodeGlyphX.MicroQrDecoded@
- options CodeGlyphX.ImageDecodeOptions = null
- cancellationToken System.Threading.CancellationToken = null
public static Boolean TryDecodeImage(Byte[] encodedImage, out MicroQrDecoded decoded, out MicroQrPixelDecodeInfo info, ImageDecodeOptions options = null, CancellationToken cancellationToken = null) #BooleanAttempts to decode an encoded raster image supported by the managed image reader, recognize a Micro QR symbol, and return recognition metadata.
Parameters
- encodedImage System.Byte[]
- decoded CodeGlyphX.MicroQrDecoded@
- info CodeGlyphX.MicroQrPixelDecodeInfo@
- options CodeGlyphX.ImageDecodeOptions = null
- cancellationToken System.Threading.CancellationToken = null