API Reference
BarcodeDecoder
Best-effort 1D barcode decoder (scanline-based).
Inheritance
- Object
- BarcodeDecoder
Methods
public static Boolean TryDecode(ReadOnlySpan<Byte> pixels, Int32 width, Int32 height, Int32 stride, PixelFormat format, out BarcodeDecoded decoded) #BooleanAttempts to decode a 1D barcode from a raw pixel buffer.
Parameters
- pixels System.Byte[]
- width System.Int32
- height System.Int32
- stride System.Int32
- format CodeGlyphX.PixelFormat
- decoded CodeGlyphX.BarcodeDecoded@
public static Boolean TryDecode(ReadOnlySpan<Byte> pixels, Int32 width, Int32 height, Int32 stride, PixelFormat format, BarcodeDecodeOptions options, out BarcodeDecoded decoded) #BooleanAttempts to decode a 1D barcode from a raw pixel buffer.
Parameters
- pixels System.Byte[]
- width System.Int32
- height System.Int32
- stride System.Int32
- format CodeGlyphX.PixelFormat
- expectedType System.Nullable{CodeGlyphX.BarcodeType}
- decoded CodeGlyphX.BarcodeDecoded@
TryDecode(System.Byte[] pixels, System.Int32 width, System.Int32 height, System.Int32 stride, CodeGlyphX.PixelFormat format, CodeGlyphX.BarcodeDecodeOptions options, CodeGlyphX.BarcodeDecoded@ decoded) #Attempts to decode a 1D barcode from a raw pixel buffer with custom decoding options.
Parameters
- pixels System.Byte[]
- width System.Int32
- height System.Int32
- stride System.Int32
- format CodeGlyphX.PixelFormat
- options CodeGlyphX.BarcodeDecodeOptions
- decoded CodeGlyphX.BarcodeDecoded@
public static Boolean TryDecode(ReadOnlySpan<Byte> pixels, Int32 width, Int32 height, Int32 stride, PixelFormat format, Nullable<BarcodeType> expectedType, BarcodeDecodeOptions options, out BarcodeDecoded decoded) #BooleanAttempts to decode a 1D barcode from a raw pixel buffer with an optional type hint and custom decoding options.
Parameters
- pixels System.Byte[]
- width System.Int32
- height System.Int32
- stride System.Int32
- format CodeGlyphX.PixelFormat
- expectedType System.Nullable{CodeGlyphX.BarcodeType}
- options CodeGlyphX.BarcodeDecodeOptions
- decoded CodeGlyphX.BarcodeDecoded@
public static Boolean TryDecode(ReadOnlySpan<Byte> pixels, Int32 width, Int32 height, Int32 stride, PixelFormat format, Nullable<BarcodeType> expectedType, BarcodeDecodeOptions options, CancellationToken cancellationToken, out BarcodeDecoded decoded) #BooleanAttempts to decode a 1D barcode from a raw pixel buffer with an optional type hint, custom options, and cancellation.
Parameters
- pixels System.Byte[]
- width System.Int32
- height System.Int32
- stride System.Int32
- format CodeGlyphX.PixelFormat
- expectedType System.Nullable{CodeGlyphX.BarcodeType}
- options CodeGlyphX.BarcodeDecodeOptions
- cancellationToken System.Threading.CancellationToken
- decoded CodeGlyphX.BarcodeDecoded@
public static Boolean TryDecode(ReadOnlySpan<Byte> pixels, Int32 width, Int32 height, Int32 stride, PixelFormat format, Nullable<BarcodeType> expectedType, BarcodeDecodeOptions options, CancellationToken cancellationToken, out BarcodeDecoded decoded, out BarcodeDecodeDiagnostics diagnostics) #BooleanAttempts to decode a 1D barcode from a raw pixel buffer with diagnostics.
Parameters
- pixels System.Byte[]
- width System.Int32
- height System.Int32
- stride System.Int32
- format CodeGlyphX.PixelFormat
- expectedType System.Nullable{CodeGlyphX.BarcodeType}
- options CodeGlyphX.BarcodeDecodeOptions
- cancellationToken System.Threading.CancellationToken
- decoded CodeGlyphX.BarcodeDecoded@
- diagnostics CodeGlyphX.BarcodeDecodeDiagnostics@
TryDecode(System.ReadOnlySpan{System.Byte} pixels, System.Int32 width, System.Int32 height, System.Int32 stride, CodeGlyphX.PixelFormat format, CodeGlyphX.BarcodeDecoded@ decoded) #Attempts to decode a 1D barcode from a raw pixel buffer.
Parameters
- pixels System.ReadOnlySpan{System.Byte}
- width System.Int32
- height System.Int32
- stride System.Int32
- format CodeGlyphX.PixelFormat
- decoded CodeGlyphX.BarcodeDecoded@
TryDecode(System.ReadOnlySpan{System.Byte} pixels, System.Int32 width, System.Int32 height, System.Int32 stride, CodeGlyphX.PixelFormat format, System.Nullable{CodeGlyphX.BarcodeType} expectedType, CodeGlyphX.BarcodeDecoded@ decoded) #Attempts to decode a 1D barcode from a raw pixel buffer.
Parameters
- pixels System.ReadOnlySpan{System.Byte}
- width System.Int32
- height System.Int32
- stride System.Int32
- format CodeGlyphX.PixelFormat
- expectedType System.Nullable{CodeGlyphX.BarcodeType}
- decoded CodeGlyphX.BarcodeDecoded@
TryDecode(System.ReadOnlySpan{System.Byte} pixels, System.Int32 width, System.Int32 height, System.Int32 stride, CodeGlyphX.PixelFormat format, CodeGlyphX.BarcodeDecodeOptions options, CodeGlyphX.BarcodeDecoded@ decoded) #Attempts to decode a 1D barcode from a raw pixel buffer with custom decoding options.
Parameters
- pixels System.ReadOnlySpan{System.Byte}
- width System.Int32
- height System.Int32
- stride System.Int32
- format CodeGlyphX.PixelFormat
- options CodeGlyphX.BarcodeDecodeOptions
- decoded CodeGlyphX.BarcodeDecoded@
TryDecode(System.ReadOnlySpan{System.Byte} pixels, System.Int32 width, System.Int32 height, System.Int32 stride, CodeGlyphX.PixelFormat format, System.Nullable{CodeGlyphX.BarcodeType} expectedType, CodeGlyphX.BarcodeDecodeOptions options, CodeGlyphX.BarcodeDecoded@ decoded) #Attempts to decode a 1D barcode from a raw pixel buffer with an optional type hint and custom decoding options.
Parameters
- pixels System.ReadOnlySpan{System.Byte}
- width System.Int32
- height System.Int32
- stride System.Int32
- format CodeGlyphX.PixelFormat
- expectedType System.Nullable{CodeGlyphX.BarcodeType}
- options CodeGlyphX.BarcodeDecodeOptions
- decoded CodeGlyphX.BarcodeDecoded@
TryDecode(System.ReadOnlySpan{System.Byte} pixels, System.Int32 width, System.Int32 height, System.Int32 stride, CodeGlyphX.PixelFormat format, System.Nullable{CodeGlyphX.BarcodeType} expectedType, CodeGlyphX.BarcodeDecodeOptions options, System.Threading.CancellationToken cancellationToken, CodeGlyphX.BarcodeDecoded@ decoded) #Attempts to decode a 1D barcode from a raw pixel buffer with an optional type hint, custom options, and cancellation.
Parameters
- pixels System.ReadOnlySpan{System.Byte}
- width System.Int32
- height System.Int32
- stride System.Int32
- format CodeGlyphX.PixelFormat
- expectedType System.Nullable{CodeGlyphX.BarcodeType}
- options CodeGlyphX.BarcodeDecodeOptions
- cancellationToken System.Threading.CancellationToken
- decoded CodeGlyphX.BarcodeDecoded@
TryDecode(System.ReadOnlySpan{System.Byte} pixels, System.Int32 width, System.Int32 height, System.Int32 stride, CodeGlyphX.PixelFormat format, System.Nullable{CodeGlyphX.BarcodeType} expectedType, CodeGlyphX.BarcodeDecodeOptions options, System.Threading.CancellationToken cancellationToken, CodeGlyphX.BarcodeDecoded@ decoded, CodeGlyphX.BarcodeDecodeDiagnostics@ diagnostics) #Attempts to decode a 1D barcode from a raw pixel buffer with diagnostics.
Parameters
- pixels System.ReadOnlySpan{System.Byte}
- width System.Int32
- height System.Int32
- stride System.Int32
- format CodeGlyphX.PixelFormat
- expectedType System.Nullable{CodeGlyphX.BarcodeType}
- options CodeGlyphX.BarcodeDecodeOptions
- cancellationToken System.Threading.CancellationToken
- decoded CodeGlyphX.BarcodeDecoded@
- diagnostics CodeGlyphX.BarcodeDecodeDiagnostics@
public static Boolean TryDecode(Boolean[] modules, out BarcodeDecoded decoded) #BooleanAttempts to decode a 1D barcode from a module sequence.
Parameters
- modules System.Boolean[]
- decoded CodeGlyphX.BarcodeDecoded@
public static Boolean TryDecode(Boolean[] modules, BarcodeDecodeOptions options, out BarcodeDecoded decoded) #BooleanAttempts to decode a 1D barcode from a module sequence.
Parameters
- modules System.Boolean[]
- expectedType System.Nullable{CodeGlyphX.BarcodeType}
- decoded CodeGlyphX.BarcodeDecoded@
TryDecode(System.Boolean[] modules, CodeGlyphX.BarcodeDecodeOptions options, CodeGlyphX.BarcodeDecoded@ decoded) #Attempts to decode a 1D barcode from a module sequence with custom decoding options.
Parameters
- modules System.Boolean[]
- options CodeGlyphX.BarcodeDecodeOptions
- decoded CodeGlyphX.BarcodeDecoded@
public static Boolean TryDecode(Boolean[] modules, Nullable<BarcodeType> expectedType, BarcodeDecodeOptions options, out BarcodeDecoded decoded) #BooleanAttempts to decode a 1D barcode from a module sequence with an optional type hint and custom decoding options.
Parameters
- modules System.Boolean[]
- expectedType System.Nullable{CodeGlyphX.BarcodeType}
- options CodeGlyphX.BarcodeDecodeOptions
- decoded CodeGlyphX.BarcodeDecoded@
public static Boolean TryDecode(Boolean[] modules, Nullable<BarcodeType> expectedType, BarcodeDecodeOptions options, CancellationToken cancellationToken, out BarcodeDecoded decoded) #BooleanAttempts to decode a 1D barcode from a module sequence with an optional type hint, custom decoding options, and cancellation.
Parameters
- modules System.Boolean[]
- expectedType System.Nullable{CodeGlyphX.BarcodeType}
- options CodeGlyphX.BarcodeDecodeOptions
- cancellationToken System.Threading.CancellationToken
- decoded CodeGlyphX.BarcodeDecoded@
public static Boolean TryDecodeAll(ReadOnlySpan<Byte> pixels, Int32 width, Int32 height, Int32 stride, PixelFormat format, out BarcodeDecoded[] decoded, Nullable<BarcodeType> expectedType = null, BarcodeDecodeOptions options = null, CancellationToken cancellationToken = null) #BooleanAttempts to decode all 1D barcodes from a raw pixel buffer.
Parameters
- pixels System.Byte[]
- width System.Int32
- height System.Int32
- stride System.Int32
- format CodeGlyphX.PixelFormat
- decoded CodeGlyphX.BarcodeDecoded[]@
- expectedType System.Nullable{CodeGlyphX.BarcodeType} = null
- options CodeGlyphX.BarcodeDecodeOptions = null
- cancellationToken System.Threading.CancellationToken = null
TryDecodeAll(System.ReadOnlySpan{System.Byte} pixels, System.Int32 width, System.Int32 height, System.Int32 stride, CodeGlyphX.PixelFormat format, CodeGlyphX.BarcodeDecoded[]@ decoded, System.Nullable{CodeGlyphX.BarcodeType} expectedType, CodeGlyphX.BarcodeDecodeOptions options, System.Threading.CancellationToken cancellationToken) #Attempts to decode all 1D barcodes from a raw pixel buffer.
Parameters
- pixels System.ReadOnlySpan{System.Byte}
- width System.Int32
- height System.Int32
- stride System.Int32
- format CodeGlyphX.PixelFormat
- decoded CodeGlyphX.BarcodeDecoded[]@
- expectedType System.Nullable{CodeGlyphX.BarcodeType}
- options CodeGlyphX.BarcodeDecodeOptions
- cancellationToken System.Threading.CancellationToken