CodeGlyphX logo
CodeGlyphX

API Reference

Class

QrImageDecoder

Namespace CodeGlyphX
Assembly CodeGlyphX
Modifiers static

Decodes QR codes from raw pixel buffers.

Inheritance

  • Object
  • QrImageDecoder

Examples


using CodeGlyphX;
var bytes = File.ReadAllBytes("qr.png");
if (QrImageDecoder.TryDecodeImage(bytes, out var decoded)) {
    Console.WriteLine(decoded.Text);
}
        

Methods

public static DecodeBatchResult<QrDecoded> DecodeImageBatch(IEnumerable<Byte[]> images, ImageDecodeOptions imageOptions = null, QrPixelDecodeOptions options = null, CancellationToken cancellationToken = null) #
Returns: DecodeBatchResult<QrDecoded>

Decodes a batch of QR images with shared settings and aggregated diagnostics.

Parameters

images System.Collections.Generic.IEnumerable{System.Byte[]} requiredposition: 0
imageOptions CodeGlyphX.ImageDecodeOptions = null optionalposition: 1
options CodeGlyphX.QrPixelDecodeOptions = null optionalposition: 2
cancellationToken System.Threading.CancellationToken = null optionalposition: 3
DecodeImageResult 3 overloads
public static DecodeResult<QrDecoded> DecodeImageResult(Stream stream, ImageDecodeOptions imageOptions = null, QrPixelDecodeOptions options = null, CancellationToken cancellationToken = null) #
Returns: DecodeResult<QrDecoded>

Decodes a QR code from common image formats (PNG/BMP/PPM/PBM/PGM/PAM/XBM/XPM/TGA) and returns diagnostics.

Parameters

image System.Byte[] requiredposition: 0
imageOptions CodeGlyphX.ImageDecodeOptions = null optionalposition: 1
options CodeGlyphX.QrPixelDecodeOptions = null optionalposition: 2
cancellationToken System.Threading.CancellationToken = null optionalposition: 3
DecodeImageResult(System.ReadOnlySpan{System.Byte} image, CodeGlyphX.ImageDecodeOptions imageOptions, CodeGlyphX.QrPixelDecodeOptions options, System.Threading.CancellationToken cancellationToken) #

Decodes a QR code from common image formats (PNG/BMP/PPM/PBM/PGM/PAM/XBM/XPM/TGA) in a span and returns diagnostics.

Parameters

image System.ReadOnlySpan{System.Byte} required
imageOptions CodeGlyphX.ImageDecodeOptions required
options CodeGlyphX.QrPixelDecodeOptions required
cancellationToken System.Threading.CancellationToken required
DecodeImageResult(System.IO.Stream stream, CodeGlyphX.ImageDecodeOptions imageOptions, CodeGlyphX.QrPixelDecodeOptions options, System.Threading.CancellationToken cancellationToken) #

Decodes a QR code from an image stream (PNG/BMP/PPM/PBM/PGM/PAM/XBM/XPM/TGA) and returns diagnostics.

Parameters

stream System.IO.Stream required
imageOptions CodeGlyphX.ImageDecodeOptions required
options CodeGlyphX.QrPixelDecodeOptions required
cancellationToken System.Threading.CancellationToken required
TryDecode 5 overloads
public static Boolean TryDecode(ReadOnlySpan<Byte> pixels, Int32 width, Int32 height, Int32 stride, PixelFormat format, out QrDecoded decoded) #
Returns: Boolean

Attempts to decode a QR code from a raw pixel buffer.

Parameters

pixels System.Byte[] requiredposition: 0
width System.Int32 requiredposition: 1
height System.Int32 requiredposition: 2
stride System.Int32 requiredposition: 3
format CodeGlyphX.PixelFormat requiredposition: 4
decoded CodeGlyphX.QrDecoded@ requiredposition: 5
public static Boolean TryDecode(ReadOnlySpan<Byte> pixels, Int32 width, Int32 height, Int32 stride, PixelFormat format, QrPixelDecodeOptions options, out QrDecoded decoded) #
Returns: Boolean

Attempts to decode a QR code from a raw pixel buffer.

Parameters

pixels System.Byte[] requiredposition: 0
width System.Int32 requiredposition: 1
height System.Int32 requiredposition: 2
stride System.Int32 requiredposition: 3
format CodeGlyphX.PixelFormat requiredposition: 4
options CodeGlyphX.QrPixelDecodeOptions requiredposition: 5
decoded CodeGlyphX.QrDecoded@ requiredposition: 6
public static Boolean TryDecode(Byte[] pixels, Int32 width, Int32 height, Int32 stride, PixelFormat format, QrPixelDecodeOptions options, CancellationToken cancellationToken, out QrDecoded decoded) #
Returns: Boolean

Attempts to decode a QR code from a raw pixel buffer, with cancellation.

Parameters

pixels System.Byte[] requiredposition: 0
width System.Int32 requiredposition: 1
height System.Int32 requiredposition: 2
stride System.Int32 requiredposition: 3
format CodeGlyphX.PixelFormat requiredposition: 4
options CodeGlyphX.QrPixelDecodeOptions requiredposition: 5
cancellationToken System.Threading.CancellationToken requiredposition: 6
decoded CodeGlyphX.QrDecoded@ requiredposition: 7
TryDecode(System.ReadOnlySpan{System.Byte} pixels, System.Int32 width, System.Int32 height, System.Int32 stride, CodeGlyphX.PixelFormat format, CodeGlyphX.QrDecoded@ decoded) #

Attempts to decode a QR code from a raw pixel buffer.

Parameters

pixels System.ReadOnlySpan{System.Byte} required
width System.Int32 required
height System.Int32 required
stride System.Int32 required
format CodeGlyphX.PixelFormat required
decoded CodeGlyphX.QrDecoded@ required
TryDecode(System.ReadOnlySpan{System.Byte} pixels, System.Int32 width, System.Int32 height, System.Int32 stride, CodeGlyphX.PixelFormat format, CodeGlyphX.QrPixelDecodeOptions options, CodeGlyphX.QrDecoded@ decoded) #

Attempts to decode a QR code from a raw pixel buffer.

Parameters

pixels System.ReadOnlySpan{System.Byte} required
width System.Int32 required
height System.Int32 required
stride System.Int32 required
format CodeGlyphX.PixelFormat required
options CodeGlyphX.QrPixelDecodeOptions required
decoded CodeGlyphX.QrDecoded@ required
TryDecodeAll 5 overloads
public static Boolean TryDecodeAll(ReadOnlySpan<Byte> pixels, Int32 width, Int32 height, Int32 stride, PixelFormat format, out QrDecoded[] decoded) #
Returns: Boolean

Attempts to decode all QR codes from a raw pixel buffer.

Parameters

pixels System.Byte[] requiredposition: 0
width System.Int32 requiredposition: 1
height System.Int32 requiredposition: 2
stride System.Int32 requiredposition: 3
format CodeGlyphX.PixelFormat requiredposition: 4
decoded CodeGlyphX.QrDecoded[]@ requiredposition: 5
public static Boolean TryDecodeAll(ReadOnlySpan<Byte> pixels, Int32 width, Int32 height, Int32 stride, PixelFormat format, QrPixelDecodeOptions options, out QrDecoded[] decoded) #
Returns: Boolean

Attempts to decode all QR codes from a raw pixel buffer.

Parameters

pixels System.Byte[] requiredposition: 0
width System.Int32 requiredposition: 1
height System.Int32 requiredposition: 2
stride System.Int32 requiredposition: 3
format CodeGlyphX.PixelFormat requiredposition: 4
options CodeGlyphX.QrPixelDecodeOptions requiredposition: 5
decoded CodeGlyphX.QrDecoded[]@ requiredposition: 6
public static Boolean TryDecodeAll(Byte[] pixels, Int32 width, Int32 height, Int32 stride, PixelFormat format, QrPixelDecodeOptions options, CancellationToken cancellationToken, out QrDecoded[] decoded) #
Returns: Boolean

Attempts to decode all QR codes from a raw pixel buffer, with cancellation.

Parameters

pixels System.Byte[] requiredposition: 0
width System.Int32 requiredposition: 1
height System.Int32 requiredposition: 2
stride System.Int32 requiredposition: 3
format CodeGlyphX.PixelFormat requiredposition: 4
options CodeGlyphX.QrPixelDecodeOptions requiredposition: 5
cancellationToken System.Threading.CancellationToken requiredposition: 6
decoded CodeGlyphX.QrDecoded[]@ requiredposition: 7
TryDecodeAll(System.ReadOnlySpan{System.Byte} pixels, System.Int32 width, System.Int32 height, System.Int32 stride, CodeGlyphX.PixelFormat format, CodeGlyphX.QrDecoded[]@ decoded) #

Attempts to decode all QR codes from a raw pixel buffer.

Parameters

pixels System.ReadOnlySpan{System.Byte} required
width System.Int32 required
height System.Int32 required
stride System.Int32 required
format CodeGlyphX.PixelFormat required
decoded CodeGlyphX.QrDecoded[]@ required
TryDecodeAll(System.ReadOnlySpan{System.Byte} pixels, System.Int32 width, System.Int32 height, System.Int32 stride, CodeGlyphX.PixelFormat format, CodeGlyphX.QrPixelDecodeOptions options, CodeGlyphX.QrDecoded[]@ decoded) #

Attempts to decode all QR codes from a raw pixel buffer.

Parameters

pixels System.ReadOnlySpan{System.Byte} required
width System.Int32 required
height System.Int32 required
stride System.Int32 required
format CodeGlyphX.PixelFormat required
options CodeGlyphX.QrPixelDecodeOptions required
decoded CodeGlyphX.QrDecoded[]@ required
TryDecodeAllImage 8 overloads
public static Boolean TryDecodeAllImage(Stream stream, out QrDecoded[] decoded) #
Returns: Boolean

Attempts to decode all QR codes from common image formats (PNG/BMP/PPM/PBM/PGM/PAM/XBM/XPM/TGA).

Parameters

image System.Byte[] requiredposition: 0
decoded CodeGlyphX.QrDecoded[]@ requiredposition: 1
public static Boolean TryDecodeAllImage(Stream stream, QrPixelDecodeOptions options, out QrDecoded[] decoded) #
Returns: Boolean

Attempts to decode all QR codes from common image formats (PNG/BMP/PPM/PBM/PGM/PAM/XBM/XPM/TGA).

Parameters

image System.Byte[] requiredposition: 0
options CodeGlyphX.QrPixelDecodeOptions requiredposition: 1
decoded CodeGlyphX.QrDecoded[]@ requiredposition: 2
public static Boolean TryDecodeAllImage(Stream stream, ImageDecodeOptions imageOptions, QrPixelDecodeOptions options, out QrDecoded[] decoded) #
Returns: Boolean

Attempts to decode all QR codes from common image formats (PNG/BMP/PPM/PBM/PGM/PAM/XBM/XPM/TGA) with image decode options.

Parameters

image System.Byte[] requiredposition: 0
imageOptions CodeGlyphX.ImageDecodeOptions requiredposition: 1
options CodeGlyphX.QrPixelDecodeOptions requiredposition: 2
decoded CodeGlyphX.QrDecoded[]@ requiredposition: 3
public static Boolean TryDecodeAllImage(Stream stream, ImageDecodeOptions imageOptions, QrPixelDecodeOptions options, CancellationToken cancellationToken, out QrDecoded[] decoded) #
Returns: Boolean

Attempts to decode all QR codes from common image formats (PNG/BMP/PPM/PBM/PGM/PAM/XBM/XPM/TGA) with image decode options and cancellation.

Parameters

image System.Byte[] requiredposition: 0
imageOptions CodeGlyphX.ImageDecodeOptions requiredposition: 1
options CodeGlyphX.QrPixelDecodeOptions requiredposition: 2
cancellationToken System.Threading.CancellationToken requiredposition: 3
decoded CodeGlyphX.QrDecoded[]@ requiredposition: 4
TryDecodeAllImage(System.IO.Stream stream, CodeGlyphX.QrDecoded[]@ decoded) #

Attempts to decode all QR codes from an image stream (PNG/BMP/PPM/PBM/PGM/PAM/XBM/XPM/TGA).

Parameters

stream System.IO.Stream required
decoded CodeGlyphX.QrDecoded[]@ required
TryDecodeAllImage(System.IO.Stream stream, CodeGlyphX.QrPixelDecodeOptions options, CodeGlyphX.QrDecoded[]@ decoded) #

Attempts to decode all QR codes from an image stream (PNG/BMP/PPM/PBM/PGM/PAM/XBM/XPM/TGA).

Parameters

stream System.IO.Stream required
options CodeGlyphX.QrPixelDecodeOptions required
decoded CodeGlyphX.QrDecoded[]@ required
TryDecodeAllImage(System.IO.Stream stream, CodeGlyphX.ImageDecodeOptions imageOptions, CodeGlyphX.QrPixelDecodeOptions options, CodeGlyphX.QrDecoded[]@ decoded) #

Attempts to decode all QR codes from an image stream (PNG/BMP/PPM/PBM/PGM/PAM/XBM/XPM/TGA) with image decode options.

Parameters

stream System.IO.Stream required
imageOptions CodeGlyphX.ImageDecodeOptions required
options CodeGlyphX.QrPixelDecodeOptions required
decoded CodeGlyphX.QrDecoded[]@ required
TryDecodeAllImage(System.IO.Stream stream, CodeGlyphX.ImageDecodeOptions imageOptions, CodeGlyphX.QrPixelDecodeOptions options, System.Threading.CancellationToken cancellationToken, CodeGlyphX.QrDecoded[]@ decoded) #

Attempts to decode all QR codes from an image stream (PNG/BMP/PPM/PBM/PGM/PAM/XBM/XPM/TGA) with image decode options and cancellation.

Parameters

stream System.IO.Stream required
imageOptions CodeGlyphX.ImageDecodeOptions required
options CodeGlyphX.QrPixelDecodeOptions required
cancellationToken System.Threading.CancellationToken required
decoded CodeGlyphX.QrDecoded[]@ required
TryDecodeImage 25 overloads
public static Boolean TryDecodeImage(Stream stream, out QrDecoded decoded) #
Returns: Boolean

Attempts to decode a QR code from common image formats (PNG/BMP/PPM/PBM/PGM/PAM/XBM/XPM/TGA).

Parameters

image System.Byte[] requiredposition: 0
decoded CodeGlyphX.QrDecoded@ requiredposition: 1
public static Boolean TryDecodeImage(Stream stream, ImageDecodeOptions imageOptions, QrPixelDecodeOptions options, out QrDecoded decoded) #
Returns: Boolean

Attempts to decode a QR code from common image formats (PNG/BMP/PPM/PBM/PGM/PAM/XBM/XPM/TGA), with diagnostics and profile options.

Parameters

image System.Byte[] requiredposition: 0
decoded CodeGlyphX.QrDecoded@ requiredposition: 1
info CodeGlyphX.QrPixelDecodeInfo@ requiredposition: 2
options CodeGlyphX.QrPixelDecodeOptions = null requiredposition: 3
public static Boolean TryDecodeImage(Stream stream, ImageDecodeOptions imageOptions, out QrDecoded decoded, out QrPixelDecodeInfo info, QrPixelDecodeOptions options = null) #
Returns: Boolean

Attempts to decode a QR code from common image formats (PNG/BMP/PPM/PBM/PGM/PAM/XBM/XPM/TGA), with diagnostics, profile options, and cancellation.

Parameters

image System.Byte[] requiredposition: 0
decoded CodeGlyphX.QrDecoded@ requiredposition: 1
info CodeGlyphX.QrPixelDecodeInfo@ requiredposition: 2
options CodeGlyphX.QrPixelDecodeOptions requiredposition: 3
cancellationToken System.Threading.CancellationToken = null optionalposition: 4
TryDecodeImage(System.Byte[] image, CodeGlyphX.ImageDecodeOptions imageOptions, CodeGlyphX.QrPixelDecodeOptions options, CodeGlyphX.QrDecoded@ decoded) #

Attempts to decode a QR code from common image formats (PNG/BMP/PPM/PBM/PGM/PAM/XBM/XPM/TGA) with image decode options.

Parameters

image System.Byte[] required
imageOptions CodeGlyphX.ImageDecodeOptions required
options CodeGlyphX.QrPixelDecodeOptions required
decoded CodeGlyphX.QrDecoded@ required
TryDecodeImage(System.Byte[] image, CodeGlyphX.ImageDecodeOptions imageOptions, CodeGlyphX.QrPixelDecodeOptions options, System.Threading.CancellationToken cancellationToken, CodeGlyphX.QrDecoded@ decoded) #

Attempts to decode a QR code from common image formats (PNG/BMP/PPM/PBM/PGM/PAM/XBM/XPM/TGA) with image decode options and cancellation.

Parameters

image System.Byte[] required
imageOptions CodeGlyphX.ImageDecodeOptions required
options CodeGlyphX.QrPixelDecodeOptions required
cancellationToken System.Threading.CancellationToken required
decoded CodeGlyphX.QrDecoded@ required
TryDecodeImage(System.Byte[] image, CodeGlyphX.ImageDecodeOptions imageOptions, CodeGlyphX.QrDecoded@ decoded, CodeGlyphX.QrPixelDecodeInfo@ info, CodeGlyphX.QrPixelDecodeOptions options) #

Attempts to decode a QR code from common image formats (PNG/BMP/PPM/PBM/PGM/PAM/XBM/XPM/TGA) with image decode options, diagnostics, and profile options.

Parameters

image System.Byte[] required
imageOptions CodeGlyphX.ImageDecodeOptions required
decoded CodeGlyphX.QrDecoded@ required
info CodeGlyphX.QrPixelDecodeInfo@ required
options CodeGlyphX.QrPixelDecodeOptions required
public static Boolean TryDecodeImage(Stream stream, ImageDecodeOptions imageOptions, out QrDecoded decoded, out QrPixelDecodeInfo info, QrPixelDecodeOptions options, CancellationToken cancellationToken) #
Returns: Boolean

Attempts to decode a QR code from common image formats (PNG/BMP/PPM/PBM/PGM/PAM/XBM/XPM/TGA) with image decode options, diagnostics, profile options, and cancellation.

Parameters

image System.Byte[] requiredposition: 0
imageOptions CodeGlyphX.ImageDecodeOptions requiredposition: 1
decoded CodeGlyphX.QrDecoded@ requiredposition: 2
info CodeGlyphX.QrPixelDecodeInfo@ requiredposition: 3
options CodeGlyphX.QrPixelDecodeOptions requiredposition: 4
cancellationToken System.Threading.CancellationToken requiredposition: 5
public static Boolean TryDecodeImage(Stream stream, QrPixelDecodeOptions options, out QrDecoded decoded) #
Returns: Boolean

Attempts to decode a QR code from common image formats (PNG/BMP/PPM/PBM/PGM/PAM/XBM/XPM/TGA).

Parameters

image System.Byte[] requiredposition: 0
options CodeGlyphX.QrPixelDecodeOptions requiredposition: 1
decoded CodeGlyphX.QrDecoded@ requiredposition: 2
TryDecodeImage(System.Byte[] image, CodeGlyphX.QrPixelDecodeOptions options, System.Threading.CancellationToken cancellationToken, CodeGlyphX.QrDecoded@ decoded) #

Attempts to decode a QR code from common image formats (PNG/BMP/PPM/PBM/PGM/PAM/XBM/XPM/TGA), with cancellation.

Parameters

image System.Byte[] required
options CodeGlyphX.QrPixelDecodeOptions required
cancellationToken System.Threading.CancellationToken required
decoded CodeGlyphX.QrDecoded@ required
TryDecodeImage(System.ReadOnlySpan{System.Byte} image, CodeGlyphX.QrDecoded@ decoded) #

Attempts to decode a QR code from common image formats (PNG/BMP/PPM/PBM/PGM/PAM/XBM/XPM/TGA) from a span.

Parameters

image System.ReadOnlySpan{System.Byte} required
decoded CodeGlyphX.QrDecoded@ required
TryDecodeImage(System.ReadOnlySpan{System.Byte} image, CodeGlyphX.QrDecoded@ decoded, CodeGlyphX.QrPixelDecodeInfo@ info, CodeGlyphX.QrPixelDecodeOptions options) #

Attempts to decode a QR code from common image formats (PNG/BMP/PPM/PBM/PGM/PAM/XBM/XPM/TGA) from a span, with diagnostics and profile options.

Parameters

image System.ReadOnlySpan{System.Byte} required
decoded CodeGlyphX.QrDecoded@ required
info CodeGlyphX.QrPixelDecodeInfo@ required
options CodeGlyphX.QrPixelDecodeOptions required
TryDecodeImage(System.ReadOnlySpan{System.Byte} image, CodeGlyphX.QrDecoded@ decoded, CodeGlyphX.QrPixelDecodeInfo@ info, CodeGlyphX.QrPixelDecodeOptions options, System.Threading.CancellationToken cancellationToken) #

Attempts to decode a QR code from common image formats (PNG/BMP/PPM/PBM/PGM/PAM/XBM/XPM/TGA) from a span, with diagnostics, profile options, and cancellation.

Parameters

image System.ReadOnlySpan{System.Byte} required
decoded CodeGlyphX.QrDecoded@ required
info CodeGlyphX.QrPixelDecodeInfo@ required
options CodeGlyphX.QrPixelDecodeOptions required
cancellationToken System.Threading.CancellationToken required
TryDecodeImage(System.ReadOnlySpan{System.Byte} image, CodeGlyphX.ImageDecodeOptions imageOptions, CodeGlyphX.QrPixelDecodeOptions options, CodeGlyphX.QrDecoded@ decoded) #

Attempts to decode a QR code from common image formats (PNG/BMP/PPM/PBM/PGM/PAM/XBM/XPM/TGA) with image decode options from a span.

Parameters

image System.ReadOnlySpan{System.Byte} required
imageOptions CodeGlyphX.ImageDecodeOptions required
options CodeGlyphX.QrPixelDecodeOptions required
decoded CodeGlyphX.QrDecoded@ required
TryDecodeImage(System.ReadOnlySpan{System.Byte} image, CodeGlyphX.ImageDecodeOptions imageOptions, CodeGlyphX.QrPixelDecodeOptions options, System.Threading.CancellationToken cancellationToken, CodeGlyphX.QrDecoded@ decoded) #

Attempts to decode a QR code from common image formats (PNG/BMP/PPM/PBM/PGM/PAM/XBM/XPM/TGA) with image decode options and cancellation from a span.

Parameters

image System.ReadOnlySpan{System.Byte} required
imageOptions CodeGlyphX.ImageDecodeOptions required
options CodeGlyphX.QrPixelDecodeOptions required
cancellationToken System.Threading.CancellationToken required
decoded CodeGlyphX.QrDecoded@ required
TryDecodeImage(System.ReadOnlySpan{System.Byte} image, CodeGlyphX.ImageDecodeOptions imageOptions, CodeGlyphX.QrDecoded@ decoded, CodeGlyphX.QrPixelDecodeInfo@ info, CodeGlyphX.QrPixelDecodeOptions options) #

Attempts to decode a QR code from common image formats (PNG/BMP/PPM/PBM/PGM/PAM/XBM/XPM/TGA) with image decode options, diagnostics, and profile options from a span.

Parameters

image System.ReadOnlySpan{System.Byte} required
imageOptions CodeGlyphX.ImageDecodeOptions required
decoded CodeGlyphX.QrDecoded@ required
info CodeGlyphX.QrPixelDecodeInfo@ required
options CodeGlyphX.QrPixelDecodeOptions required
TryDecodeImage(System.ReadOnlySpan{System.Byte} image, CodeGlyphX.ImageDecodeOptions imageOptions, CodeGlyphX.QrDecoded@ decoded, CodeGlyphX.QrPixelDecodeInfo@ info, CodeGlyphX.QrPixelDecodeOptions options, System.Threading.CancellationToken cancellationToken) #

Attempts to decode a QR code from common image formats (PNG/BMP/PPM/PBM/PGM/PAM/XBM/XPM/TGA) with image decode options, diagnostics, profile options, and cancellation from a span.

Parameters

image System.ReadOnlySpan{System.Byte} required
imageOptions CodeGlyphX.ImageDecodeOptions required
decoded CodeGlyphX.QrDecoded@ required
info CodeGlyphX.QrPixelDecodeInfo@ required
options CodeGlyphX.QrPixelDecodeOptions required
cancellationToken System.Threading.CancellationToken required
TryDecodeImage(System.ReadOnlySpan{System.Byte} image, CodeGlyphX.QrPixelDecodeOptions options, CodeGlyphX.QrDecoded@ decoded) #

Attempts to decode a QR code from common image formats (PNG/BMP/PPM/PBM/PGM/PAM/XBM/XPM/TGA) from a span with profile options.

Parameters

image System.ReadOnlySpan{System.Byte} required
options CodeGlyphX.QrPixelDecodeOptions required
decoded CodeGlyphX.QrDecoded@ required
TryDecodeImage(System.ReadOnlySpan{System.Byte} image, CodeGlyphX.QrPixelDecodeOptions options, System.Threading.CancellationToken cancellationToken, CodeGlyphX.QrDecoded@ decoded) #

Attempts to decode a QR code from common image formats (PNG/BMP/PPM/PBM/PGM/PAM/XBM/XPM/TGA) from a span, with cancellation.

Parameters

image System.ReadOnlySpan{System.Byte} required
options CodeGlyphX.QrPixelDecodeOptions required
cancellationToken System.Threading.CancellationToken required
decoded CodeGlyphX.QrDecoded@ required
TryDecodeImage(System.IO.Stream stream, CodeGlyphX.QrDecoded@ decoded) #

Attempts to decode a QR code from an image stream (PNG/BMP/PPM/PBM/PGM/PAM/XBM/XPM/TGA).

Parameters

stream System.IO.Stream required
decoded CodeGlyphX.QrDecoded@ required
TryDecodeImage(System.IO.Stream stream, CodeGlyphX.QrDecoded@ decoded, CodeGlyphX.QrPixelDecodeInfo@ info, CodeGlyphX.QrPixelDecodeOptions options) #

Attempts to decode a QR code from an image stream (PNG/BMP/PPM/PBM/PGM/PAM/XBM/XPM/TGA), with diagnostics and profile options.

Parameters

stream System.IO.Stream required
decoded CodeGlyphX.QrDecoded@ required
info CodeGlyphX.QrPixelDecodeInfo@ required
options CodeGlyphX.QrPixelDecodeOptions required
TryDecodeImage(System.IO.Stream stream, CodeGlyphX.QrPixelDecodeOptions options, CodeGlyphX.QrDecoded@ decoded) #

Attempts to decode a QR code from an image stream (PNG/BMP/PPM/PBM/PGM/PAM/XBM/XPM/TGA).

Parameters

stream System.IO.Stream required
options CodeGlyphX.QrPixelDecodeOptions required
decoded CodeGlyphX.QrDecoded@ required
TryDecodeImage(System.IO.Stream stream, CodeGlyphX.ImageDecodeOptions imageOptions, CodeGlyphX.QrPixelDecodeOptions options, CodeGlyphX.QrDecoded@ decoded) #

Attempts to decode a QR code from an image stream (PNG/BMP/PPM/PBM/PGM/PAM/XBM/XPM/TGA) with image decode options.

Parameters

stream System.IO.Stream required
imageOptions CodeGlyphX.ImageDecodeOptions required
options CodeGlyphX.QrPixelDecodeOptions required
decoded CodeGlyphX.QrDecoded@ required
TryDecodeImage(System.IO.Stream stream, CodeGlyphX.ImageDecodeOptions imageOptions, CodeGlyphX.QrPixelDecodeOptions options, System.Threading.CancellationToken cancellationToken, CodeGlyphX.QrDecoded@ decoded) #

Attempts to decode a QR code from an image stream (PNG/BMP/PPM/PBM/PGM/PAM/XBM/XPM/TGA) with image decode options and cancellation.

Parameters

stream System.IO.Stream required
imageOptions CodeGlyphX.ImageDecodeOptions required
options CodeGlyphX.QrPixelDecodeOptions required
cancellationToken System.Threading.CancellationToken required
decoded CodeGlyphX.QrDecoded@ required
TryDecodeImage(System.IO.Stream stream, CodeGlyphX.ImageDecodeOptions imageOptions, CodeGlyphX.QrDecoded@ decoded, CodeGlyphX.QrPixelDecodeInfo@ info, CodeGlyphX.QrPixelDecodeOptions options) #

Attempts to decode a QR code from an image stream (PNG/BMP/PPM/PBM/PGM/PAM/XBM/XPM/TGA) with image decode options, diagnostics, and profile options.

Parameters

stream System.IO.Stream required
imageOptions CodeGlyphX.ImageDecodeOptions required
decoded CodeGlyphX.QrDecoded@ required
info CodeGlyphX.QrPixelDecodeInfo@ required
options CodeGlyphX.QrPixelDecodeOptions required
TryDecodeImage(System.IO.Stream stream, CodeGlyphX.ImageDecodeOptions imageOptions, CodeGlyphX.QrDecoded@ decoded, CodeGlyphX.QrPixelDecodeInfo@ info, CodeGlyphX.QrPixelDecodeOptions options, System.Threading.CancellationToken cancellationToken) #

Attempts to decode a QR code from an image stream (PNG/BMP/PPM/PBM/PGM/PAM/XBM/XPM/TGA) with image decode options, diagnostics, profile options, and cancellation.

Parameters

stream System.IO.Stream required
imageOptions CodeGlyphX.ImageDecodeOptions required
decoded CodeGlyphX.QrDecoded@ required
info CodeGlyphX.QrPixelDecodeInfo@ required
options CodeGlyphX.QrPixelDecodeOptions required
cancellationToken System.Threading.CancellationToken required