CodeGlyphX logo
CodeGlyphX

API Reference

Class

Barcode

Namespace CodeGlyphX
Assembly CodeGlyphX
Modifiers static

Simple barcode helpers with fluent and static APIs.

Inheritance

  • Object
  • Barcode

Remarks

Use RenderExtras) to pick the output format by file extension.

Examples


using CodeGlyphX;
Barcode.Save(BarcodeType.Code128, "PRODUCT-12345", "barcode.png");
        

Methods

public static String Ascii(BarcodeType type, String content, BarcodeAsciiRenderOptions options = null) #
Returns: String
Obsolete("Use Render(..., OutputFormat) with RenderedOutput/OutputWriter (and RenderExtras for HTML/PDF/EPS). Legacy per-format helpers will be removed in a future release.")

Renders a barcode as ASCII text.

Parameters

type CodeGlyphX.BarcodeType requiredposition: 0
content System.String requiredposition: 1
options CodeGlyphX.Rendering.Ascii.BarcodeAsciiRenderOptions = null optionalposition: 2
public static Byte[] Bmp(BarcodeType type, String content, BarcodeOptions options = null) #
Returns: Byte[]
Obsolete("Use Render(..., OutputFormat) with RenderedOutput/OutputWriter (and RenderExtras for HTML/PDF/EPS). Legacy per-format helpers will be removed in a future release.")

Renders a barcode as BMP.

Parameters

type CodeGlyphX.BarcodeType requiredposition: 0
content System.String requiredposition: 1
options CodeGlyphX.BarcodeOptions = null optionalposition: 2
public static BarcodeBuilder Create(BarcodeType type, String content, BarcodeOptions options = null) #
Returns: BarcodeBuilder

Starts a fluent barcode builder.

Parameters

type CodeGlyphX.BarcodeType requiredposition: 0
content System.String requiredposition: 1
options CodeGlyphX.BarcodeOptions = null optionalposition: 2
public static DecodeBatchResult<BarcodeDecoded> DecodeImageBatch(IEnumerable<Byte[]> images, Nullable<BarcodeType> expectedType = null, ImageDecodeOptions options = null, BarcodeDecodeOptions decodeOptions = null, CancellationToken cancellationToken = null) #
Returns: DecodeBatchResult<BarcodeDecoded>

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

Parameters

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

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

Parameters

image System.Byte[] requiredposition: 0
expectedType System.Nullable{CodeGlyphX.BarcodeType} = null optionalposition: 1
options CodeGlyphX.ImageDecodeOptions = null optionalposition: 2
decodeOptions CodeGlyphX.BarcodeDecodeOptions = null optionalposition: 3
cancellationToken System.Threading.CancellationToken = null optionalposition: 4
DecodeImageResult(System.ReadOnlySpan{System.Byte} image, System.Nullable{CodeGlyphX.BarcodeType} expectedType, CodeGlyphX.ImageDecodeOptions options, CodeGlyphX.BarcodeDecodeOptions decodeOptions, System.Threading.CancellationToken cancellationToken) #

Decodes a barcode 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
expectedType System.Nullable{CodeGlyphX.BarcodeType} required
options CodeGlyphX.ImageDecodeOptions required
decodeOptions CodeGlyphX.BarcodeDecodeOptions required
cancellationToken System.Threading.CancellationToken required
DecodeImageResult(System.IO.Stream stream, System.Nullable{CodeGlyphX.BarcodeType} expectedType, CodeGlyphX.ImageDecodeOptions options, CodeGlyphX.BarcodeDecodeOptions decodeOptions, System.Threading.CancellationToken cancellationToken) #

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

Parameters

stream System.IO.Stream required
expectedType System.Nullable{CodeGlyphX.BarcodeType} required
options CodeGlyphX.ImageDecodeOptions required
decodeOptions CodeGlyphX.BarcodeDecodeOptions required
cancellationToken System.Threading.CancellationToken required
DecodePng 2 overloads
public static BarcodeDecoded DecodePng(Stream stream) #
Returns: BarcodeDecoded

Decodes a barcode from PNG bytes.

Parameters

png System.Byte[] requiredposition: 0
DecodePng(System.IO.Stream stream) #

Decodes a barcode from a PNG stream.

Parameters

stream System.IO.Stream required
public static BarcodeDecoded DecodePngFile(String path) #
Returns: BarcodeDecoded

Decodes a barcode from a PNG file.

Parameters

path System.String requiredposition: 0
public static Barcode1D Encode(BarcodeType type, String content) #
Returns: Barcode1D

Encodes a 1D barcode.

Parameters

type CodeGlyphX.BarcodeType requiredposition: 0
content System.String requiredposition: 1
public static String Eps(BarcodeType type, String content, BarcodeOptions options = null, RenderMode mode = Vector) #
Returns: String
Obsolete("Use Render(..., OutputFormat) with RenderedOutput/OutputWriter (and RenderExtras for HTML/PDF/EPS). Legacy per-format helpers will be removed in a future release.")

Renders a barcode as EPS.

Parameters

type CodeGlyphX.BarcodeType requiredposition: 0
The barcode type.
content System.String requiredposition: 1
The barcode content.
options CodeGlyphX.BarcodeOptions = null optionalposition: 2
Optional rendering options.
mode CodeGlyphX.Rendering.RenderMode = Vector optionalposition: 3
Vector or raster output.
public static String Html(BarcodeType type, String content, BarcodeOptions options = null) #
Returns: String
Obsolete("Use Render(..., OutputFormat) with RenderedOutput/OutputWriter (and RenderExtras for HTML/PDF/EPS). Legacy per-format helpers will be removed in a future release.")

Renders a barcode as HTML.

Parameters

type CodeGlyphX.BarcodeType requiredposition: 0
content System.String requiredposition: 1
options CodeGlyphX.BarcodeOptions = null optionalposition: 2
public static Byte[] Ico(BarcodeType type, String content, BarcodeOptions options = null) #
Returns: Byte[]
Obsolete("Use Render(..., OutputFormat) with RenderedOutput/OutputWriter (and RenderExtras for HTML/PDF/EPS). Legacy per-format helpers will be removed in a future release.")

Renders a barcode as ICO.

Parameters

type CodeGlyphX.BarcodeType requiredposition: 0
content System.String requiredposition: 1
options CodeGlyphX.BarcodeOptions = null optionalposition: 2
public static Byte[] Jpeg(BarcodeType type, String content, BarcodeOptions options = null) #
Returns: Byte[]
Obsolete("Use Render(..., OutputFormat) with RenderedOutput/OutputWriter (and RenderExtras for HTML/PDF/EPS). Legacy per-format helpers will be removed in a future release.")

Renders a barcode as JPEG.

Parameters

type CodeGlyphX.BarcodeType requiredposition: 0
content System.String requiredposition: 1
options CodeGlyphX.BarcodeOptions = null optionalposition: 2
public static Byte[] Pam(BarcodeType type, String content, BarcodeOptions options = null) #
Returns: Byte[]
Obsolete("Use Render(..., OutputFormat) with RenderedOutput/OutputWriter (and RenderExtras for HTML/PDF/EPS). Legacy per-format helpers will be removed in a future release.")

Renders a barcode as PAM.

Parameters

type CodeGlyphX.BarcodeType requiredposition: 0
content System.String requiredposition: 1
options CodeGlyphX.BarcodeOptions = null optionalposition: 2
public static Byte[] Pbm(BarcodeType type, String content, BarcodeOptions options = null) #
Returns: Byte[]
Obsolete("Use Render(..., OutputFormat) with RenderedOutput/OutputWriter (and RenderExtras for HTML/PDF/EPS). Legacy per-format helpers will be removed in a future release.")

Renders a barcode as PBM.

Parameters

type CodeGlyphX.BarcodeType requiredposition: 0
content System.String requiredposition: 1
options CodeGlyphX.BarcodeOptions = null optionalposition: 2
public static Byte[] Pdf(BarcodeType type, String content, BarcodeOptions options = null, RenderMode mode = Vector) #
Returns: Byte[]
Obsolete("Use Render(..., OutputFormat) with RenderedOutput/OutputWriter (and RenderExtras for HTML/PDF/EPS). Legacy per-format helpers will be removed in a future release.")

Renders a barcode as PDF.

Parameters

type CodeGlyphX.BarcodeType requiredposition: 0
The barcode type.
content System.String requiredposition: 1
The barcode content.
options CodeGlyphX.BarcodeOptions = null optionalposition: 2
Optional rendering options.
mode CodeGlyphX.Rendering.RenderMode = Vector optionalposition: 3
Vector or raster output.
public static Byte[] Pgm(BarcodeType type, String content, BarcodeOptions options = null) #
Returns: Byte[]
Obsolete("Use Render(..., OutputFormat) with RenderedOutput/OutputWriter (and RenderExtras for HTML/PDF/EPS). Legacy per-format helpers will be removed in a future release.")

Renders a barcode as PGM.

Parameters

type CodeGlyphX.BarcodeType requiredposition: 0
content System.String requiredposition: 1
options CodeGlyphX.BarcodeOptions = null optionalposition: 2
public static Byte[] Png(BarcodeType type, String content, BarcodeOptions options = null) #
Returns: Byte[]
Obsolete("Use Render(..., OutputFormat) with RenderedOutput/OutputWriter (and RenderExtras for HTML/PDF/EPS). Legacy per-format helpers will be removed in a future release.")

Renders a barcode as PNG.

Parameters

type CodeGlyphX.BarcodeType requiredposition: 0
content System.String requiredposition: 1
options CodeGlyphX.BarcodeOptions = null optionalposition: 2
public static Byte[] Ppm(BarcodeType type, String content, BarcodeOptions options = null) #
Returns: Byte[]
Obsolete("Use Render(..., OutputFormat) with RenderedOutput/OutputWriter (and RenderExtras for HTML/PDF/EPS). Legacy per-format helpers will be removed in a future release.")

Renders a barcode as PPM.

Parameters

type CodeGlyphX.BarcodeType requiredposition: 0
content System.String requiredposition: 1
options CodeGlyphX.BarcodeOptions = null optionalposition: 2
Render 2 overloads
public static RenderedOutput Render(BarcodeType type, String content, OutputFormat format, BarcodeOptions options = null, RenderExtras extras = null) #
Returns: RenderedOutput

Renders a barcode to the requested output format.

Parameters

type CodeGlyphX.BarcodeType requiredposition: 0
content System.String requiredposition: 1
format CodeGlyphX.Rendering.OutputFormat requiredposition: 2
options CodeGlyphX.BarcodeOptions = null optionalposition: 3
extras CodeGlyphX.Rendering.RenderExtras = null optionalposition: 4
public static RenderedOutput Render(Barcode1D barcode, OutputFormat format, BarcodeOptions options = null, RenderExtras extras = null) #
Returns: RenderedOutput

Renders a barcode to the requested output format.

Parameters

barcode CodeGlyphX.Barcode1D requiredposition: 0
format CodeGlyphX.Rendering.OutputFormat requiredposition: 1
options CodeGlyphX.BarcodeOptions = null optionalposition: 2
extras CodeGlyphX.Rendering.RenderExtras = null optionalposition: 3
Save 2 overloads
public static String Save(BarcodeType type, String content, String path, BarcodeOptions options = null, RenderExtras extras = null) #
Returns: String

Saves a barcode to a file based on the file extension. Defaults to PNG when no extension is provided.

Parameters

type CodeGlyphX.BarcodeType requiredposition: 0
content System.String requiredposition: 1
path System.String requiredposition: 2
options CodeGlyphX.BarcodeOptions = null optionalposition: 3
title System.String = null optionalposition: 4
Save(CodeGlyphX.BarcodeType type, System.String content, System.String path, CodeGlyphX.BarcodeOptions options, CodeGlyphX.Rendering.RenderExtras extras) #

Saves a barcode to a file based on the file extension. Defaults to PNG when no extension is provided.

Parameters

type CodeGlyphX.BarcodeType required
content System.String required
path System.String required
options CodeGlyphX.BarcodeOptions required
extras CodeGlyphX.Rendering.RenderExtras required
public static String SaveAscii(BarcodeType type, String content, String path, BarcodeAsciiRenderOptions options = null) #
Returns: String
Obsolete("Use Render(..., OutputFormat) with RenderedOutput/OutputWriter (and RenderExtras for HTML/PDF/EPS). Legacy per-format helpers will be removed in a future release.")

Renders a barcode as ASCII text and writes it to a file.

Parameters

type CodeGlyphX.BarcodeType requiredposition: 0
content System.String requiredposition: 1
path System.String requiredposition: 2
options CodeGlyphX.Rendering.Ascii.BarcodeAsciiRenderOptions = null optionalposition: 3
SaveBmp 2 overloads
public static Void SaveBmp(BarcodeType type, String content, Stream stream, BarcodeOptions options = null) #
Returns: Void
Obsolete("Use Render(..., OutputFormat) with RenderedOutput/OutputWriter (and RenderExtras for HTML/PDF/EPS). Legacy per-format helpers will be removed in a future release.")

Renders a barcode as BMP and writes it to a file.

Parameters

type CodeGlyphX.BarcodeType requiredposition: 0
content System.String requiredposition: 1
path System.String requiredposition: 2
options CodeGlyphX.BarcodeOptions = null optionalposition: 3
SaveBmp(CodeGlyphX.BarcodeType type, System.String content, System.IO.Stream stream, CodeGlyphX.BarcodeOptions options) #

Renders a barcode as BMP and writes it to a stream.

Parameters

type CodeGlyphX.BarcodeType required
content System.String required
stream System.IO.Stream required
options CodeGlyphX.BarcodeOptions required
SaveEps 2 overloads
public static Void SaveEps(BarcodeType type, String content, Stream stream, BarcodeOptions options = null, RenderMode mode = Vector) #
Returns: Void
Obsolete("Use Render(..., OutputFormat) with RenderedOutput/OutputWriter (and RenderExtras for HTML/PDF/EPS). Legacy per-format helpers will be removed in a future release.")

Renders a barcode as EPS and writes it to a file.

Parameters

type CodeGlyphX.BarcodeType requiredposition: 0
The barcode type.
content System.String requiredposition: 1
The barcode content.
path System.String requiredposition: 2
Output file path.
options CodeGlyphX.BarcodeOptions = null optionalposition: 3
Optional rendering options.
mode CodeGlyphX.Rendering.RenderMode = Vector optionalposition: 4
Vector or raster output.
SaveEps(CodeGlyphX.BarcodeType type, System.String content, System.IO.Stream stream, CodeGlyphX.BarcodeOptions options, CodeGlyphX.Rendering.RenderMode mode) #

Renders a barcode as EPS and writes it to a stream.

Parameters

type CodeGlyphX.BarcodeType required
The barcode type.
content System.String required
The barcode content.
stream System.IO.Stream required
Destination stream.
options CodeGlyphX.BarcodeOptions required
Optional rendering options.
mode CodeGlyphX.Rendering.RenderMode required
Vector or raster output.
SaveHtml 2 overloads
public static Void SaveHtml(BarcodeType type, String content, Stream stream, BarcodeOptions options = null, String title = null) #
Returns: Void
Obsolete("Use Render(..., OutputFormat) with RenderedOutput/OutputWriter (and RenderExtras for HTML/PDF/EPS). Legacy per-format helpers will be removed in a future release.")

Renders a barcode as HTML and writes it to a file.

Parameters

type CodeGlyphX.BarcodeType requiredposition: 0
content System.String requiredposition: 1
path System.String requiredposition: 2
options CodeGlyphX.BarcodeOptions = null optionalposition: 3
title System.String = null optionalposition: 4
SaveHtml(CodeGlyphX.BarcodeType type, System.String content, System.IO.Stream stream, CodeGlyphX.BarcodeOptions options, System.String title) #

Renders a barcode as HTML and writes it to a stream.

Parameters

type CodeGlyphX.BarcodeType required
content System.String required
stream System.IO.Stream required
options CodeGlyphX.BarcodeOptions required
title System.String required
SaveIco 2 overloads
public static Void SaveIco(BarcodeType type, String content, Stream stream, BarcodeOptions options = null) #
Returns: Void
Obsolete("Use Render(..., OutputFormat) with RenderedOutput/OutputWriter (and RenderExtras for HTML/PDF/EPS). Legacy per-format helpers will be removed in a future release.")

Renders a barcode as ICO and writes it to a file.

Parameters

type CodeGlyphX.BarcodeType requiredposition: 0
content System.String requiredposition: 1
path System.String requiredposition: 2
options CodeGlyphX.BarcodeOptions = null optionalposition: 3
SaveIco(CodeGlyphX.BarcodeType type, System.String content, System.IO.Stream stream, CodeGlyphX.BarcodeOptions options) #

Renders a barcode as ICO and writes it to a stream.

Parameters

type CodeGlyphX.BarcodeType required
content System.String required
stream System.IO.Stream required
options CodeGlyphX.BarcodeOptions required
SaveJpeg 2 overloads
public static Void SaveJpeg(BarcodeType type, String content, Stream stream, BarcodeOptions options = null) #
Returns: Void
Obsolete("Use Render(..., OutputFormat) with RenderedOutput/OutputWriter (and RenderExtras for HTML/PDF/EPS). Legacy per-format helpers will be removed in a future release.")

Renders a barcode as JPEG and writes it to a file.

Parameters

type CodeGlyphX.BarcodeType requiredposition: 0
content System.String requiredposition: 1
path System.String requiredposition: 2
options CodeGlyphX.BarcodeOptions = null optionalposition: 3
SaveJpeg(CodeGlyphX.BarcodeType type, System.String content, System.IO.Stream stream, CodeGlyphX.BarcodeOptions options) #

Renders a barcode as JPEG and writes it to a stream.

Parameters

type CodeGlyphX.BarcodeType required
content System.String required
stream System.IO.Stream required
options CodeGlyphX.BarcodeOptions required
SavePam 2 overloads
public static Void SavePam(BarcodeType type, String content, Stream stream, BarcodeOptions options = null) #
Returns: Void
Obsolete("Use Render(..., OutputFormat) with RenderedOutput/OutputWriter (and RenderExtras for HTML/PDF/EPS). Legacy per-format helpers will be removed in a future release.")

Renders a barcode as PAM and writes it to a file.

Parameters

type CodeGlyphX.BarcodeType requiredposition: 0
content System.String requiredposition: 1
path System.String requiredposition: 2
options CodeGlyphX.BarcodeOptions = null optionalposition: 3
SavePam(CodeGlyphX.BarcodeType type, System.String content, System.IO.Stream stream, CodeGlyphX.BarcodeOptions options) #

Renders a barcode as PAM and writes it to a stream.

Parameters

type CodeGlyphX.BarcodeType required
content System.String required
stream System.IO.Stream required
options CodeGlyphX.BarcodeOptions required
SavePbm 2 overloads
public static Void SavePbm(BarcodeType type, String content, Stream stream, BarcodeOptions options = null) #
Returns: Void
Obsolete("Use Render(..., OutputFormat) with RenderedOutput/OutputWriter (and RenderExtras for HTML/PDF/EPS). Legacy per-format helpers will be removed in a future release.")

Renders a barcode as PBM and writes it to a file.

Parameters

type CodeGlyphX.BarcodeType requiredposition: 0
content System.String requiredposition: 1
path System.String requiredposition: 2
options CodeGlyphX.BarcodeOptions = null optionalposition: 3
SavePbm(CodeGlyphX.BarcodeType type, System.String content, System.IO.Stream stream, CodeGlyphX.BarcodeOptions options) #

Renders a barcode as PBM and writes it to a stream.

Parameters

type CodeGlyphX.BarcodeType required
content System.String required
stream System.IO.Stream required
options CodeGlyphX.BarcodeOptions required
SavePdf 2 overloads
public static Void SavePdf(BarcodeType type, String content, Stream stream, BarcodeOptions options = null, RenderMode mode = Vector) #
Returns: Void
Obsolete("Use Render(..., OutputFormat) with RenderedOutput/OutputWriter (and RenderExtras for HTML/PDF/EPS). Legacy per-format helpers will be removed in a future release.")

Renders a barcode as PDF and writes it to a file.

Parameters

type CodeGlyphX.BarcodeType requiredposition: 0
The barcode type.
content System.String requiredposition: 1
The barcode content.
path System.String requiredposition: 2
Output file path.
options CodeGlyphX.BarcodeOptions = null optionalposition: 3
Optional rendering options.
mode CodeGlyphX.Rendering.RenderMode = Vector optionalposition: 4
Vector or raster output.
SavePdf(CodeGlyphX.BarcodeType type, System.String content, System.IO.Stream stream, CodeGlyphX.BarcodeOptions options, CodeGlyphX.Rendering.RenderMode mode) #

Renders a barcode as PDF and writes it to a stream.

Parameters

type CodeGlyphX.BarcodeType required
The barcode type.
content System.String required
The barcode content.
stream System.IO.Stream required
Destination stream.
options CodeGlyphX.BarcodeOptions required
Optional rendering options.
mode CodeGlyphX.Rendering.RenderMode required
Vector or raster output.
SavePgm 2 overloads
public static Void SavePgm(BarcodeType type, String content, Stream stream, BarcodeOptions options = null) #
Returns: Void
Obsolete("Use Render(..., OutputFormat) with RenderedOutput/OutputWriter (and RenderExtras for HTML/PDF/EPS). Legacy per-format helpers will be removed in a future release.")

Renders a barcode as PGM and writes it to a file.

Parameters

type CodeGlyphX.BarcodeType requiredposition: 0
content System.String requiredposition: 1
path System.String requiredposition: 2
options CodeGlyphX.BarcodeOptions = null optionalposition: 3
SavePgm(CodeGlyphX.BarcodeType type, System.String content, System.IO.Stream stream, CodeGlyphX.BarcodeOptions options) #

Renders a barcode as PGM and writes it to a stream.

Parameters

type CodeGlyphX.BarcodeType required
content System.String required
stream System.IO.Stream required
options CodeGlyphX.BarcodeOptions required
SavePng 2 overloads
public static Void SavePng(BarcodeType type, String content, Stream stream, BarcodeOptions options = null) #
Returns: Void
Obsolete("Use Render(..., OutputFormat) with RenderedOutput/OutputWriter (and RenderExtras for HTML/PDF/EPS). Legacy per-format helpers will be removed in a future release.")

Renders a barcode as PNG and writes it to a file.

Parameters

type CodeGlyphX.BarcodeType requiredposition: 0
content System.String requiredposition: 1
path System.String requiredposition: 2
options CodeGlyphX.BarcodeOptions = null optionalposition: 3
SavePng(CodeGlyphX.BarcodeType type, System.String content, System.IO.Stream stream, CodeGlyphX.BarcodeOptions options) #

Renders a barcode as PNG and writes it to a stream.

Parameters

type CodeGlyphX.BarcodeType required
content System.String required
stream System.IO.Stream required
options CodeGlyphX.BarcodeOptions required
SavePpm 2 overloads
public static Void SavePpm(BarcodeType type, String content, Stream stream, BarcodeOptions options = null) #
Returns: Void
Obsolete("Use Render(..., OutputFormat) with RenderedOutput/OutputWriter (and RenderExtras for HTML/PDF/EPS). Legacy per-format helpers will be removed in a future release.")

Renders a barcode as PPM and writes it to a file.

Parameters

type CodeGlyphX.BarcodeType requiredposition: 0
content System.String requiredposition: 1
path System.String requiredposition: 2
options CodeGlyphX.BarcodeOptions = null optionalposition: 3
SavePpm(CodeGlyphX.BarcodeType type, System.String content, System.IO.Stream stream, CodeGlyphX.BarcodeOptions options) #

Renders a barcode as PPM and writes it to a stream.

Parameters

type CodeGlyphX.BarcodeType required
content System.String required
stream System.IO.Stream required
options CodeGlyphX.BarcodeOptions required
SaveSvg 2 overloads
public static Void SaveSvg(BarcodeType type, String content, Stream stream, BarcodeOptions options = null) #
Returns: Void
Obsolete("Use Render(..., OutputFormat) with RenderedOutput/OutputWriter (and RenderExtras for HTML/PDF/EPS). Legacy per-format helpers will be removed in a future release.")

Renders a barcode as SVG and writes it to a file.

Parameters

type CodeGlyphX.BarcodeType requiredposition: 0
content System.String requiredposition: 1
path System.String requiredposition: 2
options CodeGlyphX.BarcodeOptions = null optionalposition: 3
SaveSvg(CodeGlyphX.BarcodeType type, System.String content, System.IO.Stream stream, CodeGlyphX.BarcodeOptions options) #

Renders a barcode as SVG and writes it to a stream.

Parameters

type CodeGlyphX.BarcodeType required
content System.String required
stream System.IO.Stream required
options CodeGlyphX.BarcodeOptions required
SaveSvgz 2 overloads
public static Void SaveSvgz(BarcodeType type, String content, Stream stream, BarcodeOptions options = null) #
Returns: Void
Obsolete("Use Render(..., OutputFormat) with RenderedOutput/OutputWriter (and RenderExtras for HTML/PDF/EPS). Legacy per-format helpers will be removed in a future release.")

Renders a barcode as SVGZ and writes it to a file.

Parameters

type CodeGlyphX.BarcodeType requiredposition: 0
content System.String requiredposition: 1
path System.String requiredposition: 2
options CodeGlyphX.BarcodeOptions = null optionalposition: 3
SaveSvgz(CodeGlyphX.BarcodeType type, System.String content, System.IO.Stream stream, CodeGlyphX.BarcodeOptions options) #

Renders a barcode as SVGZ and writes it to a stream.

Parameters

type CodeGlyphX.BarcodeType required
content System.String required
stream System.IO.Stream required
options CodeGlyphX.BarcodeOptions required
SaveTga 2 overloads
public static Void SaveTga(BarcodeType type, String content, Stream stream, BarcodeOptions options = null) #
Returns: Void
Obsolete("Use Render(..., OutputFormat) with RenderedOutput/OutputWriter (and RenderExtras for HTML/PDF/EPS). Legacy per-format helpers will be removed in a future release.")

Renders a barcode as TGA and writes it to a file.

Parameters

type CodeGlyphX.BarcodeType requiredposition: 0
content System.String requiredposition: 1
path System.String requiredposition: 2
options CodeGlyphX.BarcodeOptions = null optionalposition: 3
SaveTga(CodeGlyphX.BarcodeType type, System.String content, System.IO.Stream stream, CodeGlyphX.BarcodeOptions options) #

Renders a barcode as TGA and writes it to a stream.

Parameters

type CodeGlyphX.BarcodeType required
content System.String required
stream System.IO.Stream required
options CodeGlyphX.BarcodeOptions required
SaveWebp 2 overloads
public static Void SaveWebp(BarcodeType type, String content, Stream stream, BarcodeOptions options = null) #
Returns: Void
Obsolete("Use Render(..., OutputFormat) with RenderedOutput/OutputWriter (and RenderExtras for HTML/PDF/EPS). Legacy per-format helpers will be removed in a future release.")

Renders a barcode as WebP and writes it to a file.

Parameters

type CodeGlyphX.BarcodeType requiredposition: 0
content System.String requiredposition: 1
path System.String requiredposition: 2
options CodeGlyphX.BarcodeOptions = null optionalposition: 3
SaveWebp(CodeGlyphX.BarcodeType type, System.String content, System.IO.Stream stream, CodeGlyphX.BarcodeOptions options) #

Renders a barcode as WebP and writes it to a stream.

Parameters

type CodeGlyphX.BarcodeType required
content System.String required
stream System.IO.Stream required
options CodeGlyphX.BarcodeOptions required
SaveXbm 2 overloads
public static Void SaveXbm(BarcodeType type, String content, Stream stream, BarcodeOptions options = null) #
Returns: Void
Obsolete("Use Render(..., OutputFormat) with RenderedOutput/OutputWriter (and RenderExtras for HTML/PDF/EPS). Legacy per-format helpers will be removed in a future release.")

Renders a barcode as XBM and writes it to a file.

Parameters

type CodeGlyphX.BarcodeType requiredposition: 0
content System.String requiredposition: 1
path System.String requiredposition: 2
options CodeGlyphX.BarcodeOptions = null optionalposition: 3
SaveXbm(CodeGlyphX.BarcodeType type, System.String content, System.IO.Stream stream, CodeGlyphX.BarcodeOptions options) #

Renders a barcode as XBM and writes it to a stream.

Parameters

type CodeGlyphX.BarcodeType required
content System.String required
stream System.IO.Stream required
options CodeGlyphX.BarcodeOptions required
SaveXpm 2 overloads
public static Void SaveXpm(BarcodeType type, String content, Stream stream, BarcodeOptions options = null) #
Returns: Void
Obsolete("Use Render(..., OutputFormat) with RenderedOutput/OutputWriter (and RenderExtras for HTML/PDF/EPS). Legacy per-format helpers will be removed in a future release.")

Renders a barcode as XPM and writes it to a file.

Parameters

type CodeGlyphX.BarcodeType requiredposition: 0
content System.String requiredposition: 1
path System.String requiredposition: 2
options CodeGlyphX.BarcodeOptions = null optionalposition: 3
SaveXpm(CodeGlyphX.BarcodeType type, System.String content, System.IO.Stream stream, CodeGlyphX.BarcodeOptions options) #

Renders a barcode as XPM and writes it to a stream.

Parameters

type CodeGlyphX.BarcodeType required
content System.String required
stream System.IO.Stream required
options CodeGlyphX.BarcodeOptions required
public static String Svg(BarcodeType type, String content, BarcodeOptions options = null) #
Returns: String
Obsolete("Use Render(..., OutputFormat) with RenderedOutput/OutputWriter (and RenderExtras for HTML/PDF/EPS). Legacy per-format helpers will be removed in a future release.")

Renders a barcode as SVG.

Parameters

type CodeGlyphX.BarcodeType requiredposition: 0
content System.String requiredposition: 1
options CodeGlyphX.BarcodeOptions = null optionalposition: 2
public static Byte[] Svgz(BarcodeType type, String content, BarcodeOptions options = null) #
Returns: Byte[]
Obsolete("Use Render(..., OutputFormat) with RenderedOutput/OutputWriter (and RenderExtras for HTML/PDF/EPS). Legacy per-format helpers will be removed in a future release.")

Renders a barcode as SVGZ.

Parameters

type CodeGlyphX.BarcodeType requiredposition: 0
content System.String requiredposition: 1
options CodeGlyphX.BarcodeOptions = null optionalposition: 2
public static Byte[] Tga(BarcodeType type, String content, BarcodeOptions options = null) #
Returns: Byte[]
Obsolete("Use Render(..., OutputFormat) with RenderedOutput/OutputWriter (and RenderExtras for HTML/PDF/EPS). Legacy per-format helpers will be removed in a future release.")

Renders a barcode as TGA.

Parameters

type CodeGlyphX.BarcodeType requiredposition: 0
content System.String requiredposition: 1
options CodeGlyphX.BarcodeOptions = null optionalposition: 2
TryDecodeImage 21 overloads
public static Boolean TryDecodeImage(Stream stream, out BarcodeDecoded decoded) #
Returns: Boolean

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

Parameters

image System.Byte[] requiredposition: 0
decoded CodeGlyphX.BarcodeDecoded@ requiredposition: 1
public static Boolean TryDecodeImage(Stream stream, Nullable<BarcodeType> expectedType, out BarcodeDecoded decoded) #
Returns: Boolean

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

Parameters

image System.Byte[] requiredposition: 0
cancellationToken System.Threading.CancellationToken requiredposition: 1
decoded CodeGlyphX.BarcodeDecoded@ requiredposition: 2
TryDecodeImage(System.Byte[] image, System.Nullable{CodeGlyphX.BarcodeType} expectedType, CodeGlyphX.BarcodeDecoded@ decoded) #

Attempts to decode a barcode from common image formats (PNG/BMP/PPM/PBM/PGM/PAM/XBM/XPM/TGA) with an optional expected type hint.

Parameters

image System.Byte[] required
expectedType System.Nullable{CodeGlyphX.BarcodeType} required
decoded CodeGlyphX.BarcodeDecoded@ required
public static Boolean TryDecodeImage(Stream stream, Nullable<BarcodeType> expectedType, CancellationToken cancellationToken, out BarcodeDecoded decoded) #
Returns: Boolean

Attempts to decode a barcode from common image formats (PNG/BMP/PPM/PBM/PGM/PAM/XBM/XPM/TGA) with an optional expected type hint and image decode options.

Parameters

image System.Byte[] requiredposition: 0
expectedType System.Nullable{CodeGlyphX.BarcodeType} requiredposition: 1
options CodeGlyphX.ImageDecodeOptions requiredposition: 2
decoded CodeGlyphX.BarcodeDecoded@ requiredposition: 3
public static Boolean TryDecodeImage(Stream stream, Nullable<BarcodeType> expectedType, ImageDecodeOptions options, CancellationToken cancellationToken, out BarcodeDecoded decoded) #
Returns: Boolean

Attempts to decode a barcode from common image formats (PNG/BMP/PPM/PBM/PGM/PAM/XBM/XPM/TGA) with an optional expected type hint, image decode options, and barcode decode options.

Parameters

image System.Byte[] requiredposition: 0
expectedType System.Nullable{CodeGlyphX.BarcodeType} requiredposition: 1
options CodeGlyphX.ImageDecodeOptions requiredposition: 2
decodeOptions CodeGlyphX.BarcodeDecodeOptions requiredposition: 3
decoded CodeGlyphX.BarcodeDecoded@ requiredposition: 4
TryDecodeImage(System.Byte[] image, System.Nullable{CodeGlyphX.BarcodeType} expectedType, System.Threading.CancellationToken cancellationToken, CodeGlyphX.BarcodeDecoded@ decoded) #

Attempts to decode a barcode from common image formats (PNG/BMP/PPM/PBM/PGM/PAM/XBM/XPM/TGA) with an optional expected type hint, with cancellation.

Parameters

image System.Byte[] required
expectedType System.Nullable{CodeGlyphX.BarcodeType} required
cancellationToken System.Threading.CancellationToken required
decoded CodeGlyphX.BarcodeDecoded@ required
TryDecodeImage(System.Byte[] image, System.Nullable{CodeGlyphX.BarcodeType} expectedType, CodeGlyphX.ImageDecodeOptions options, System.Threading.CancellationToken cancellationToken, CodeGlyphX.BarcodeDecoded@ decoded) #

Attempts to decode a barcode from common image formats (PNG/BMP/PPM/PBM/PGM/PAM/XBM/XPM/TGA) with an optional expected type hint and image decode options, with cancellation.

Parameters

image System.Byte[] required
expectedType System.Nullable{CodeGlyphX.BarcodeType} required
options CodeGlyphX.ImageDecodeOptions required
cancellationToken System.Threading.CancellationToken required
decoded CodeGlyphX.BarcodeDecoded@ required
public static Boolean TryDecodeImage(Stream stream, Nullable<BarcodeType> expectedType, ImageDecodeOptions options, BarcodeDecodeOptions decodeOptions, CancellationToken cancellationToken, out BarcodeDecoded decoded) #
Returns: Boolean

Attempts to decode a barcode from common image formats (PNG/BMP/PPM/PBM/PGM/PAM/XBM/XPM/TGA) with an optional expected type hint, image decode options, barcode decode options, and cancellation.

Parameters

image System.Byte[] requiredposition: 0
expectedType System.Nullable{CodeGlyphX.BarcodeType} requiredposition: 1
options CodeGlyphX.ImageDecodeOptions requiredposition: 2
decodeOptions CodeGlyphX.BarcodeDecodeOptions requiredposition: 3
cancellationToken System.Threading.CancellationToken requiredposition: 4
decoded CodeGlyphX.BarcodeDecoded@ requiredposition: 5
TryDecodeImage(System.ReadOnlySpan{System.Byte} image, CodeGlyphX.BarcodeDecoded@ decoded) #

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

Parameters

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

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

Parameters

image System.ReadOnlySpan{System.Byte} required
cancellationToken System.Threading.CancellationToken required
decoded CodeGlyphX.BarcodeDecoded@ required
TryDecodeImage(System.ReadOnlySpan{System.Byte} image, System.Nullable{CodeGlyphX.BarcodeType} expectedType, CodeGlyphX.BarcodeDecoded@ decoded) #

Attempts to decode a barcode from common image formats (PNG/BMP/PPM/PBM/PGM/PAM/XBM/XPM/TGA) with an optional expected type hint.

Parameters

image System.ReadOnlySpan{System.Byte} required
expectedType System.Nullable{CodeGlyphX.BarcodeType} required
decoded CodeGlyphX.BarcodeDecoded@ required
TryDecodeImage(System.ReadOnlySpan{System.Byte} image, System.Nullable{CodeGlyphX.BarcodeType} expectedType, CodeGlyphX.ImageDecodeOptions options, CodeGlyphX.BarcodeDecodeOptions decodeOptions, CodeGlyphX.BarcodeDecoded@ decoded) #

Attempts to decode a barcode from common image formats (PNG/BMP/PPM/PBM/PGM/PAM/XBM/XPM/TGA) with an optional expected type hint and image decode options.

Parameters

image System.ReadOnlySpan{System.Byte} required
expectedType System.Nullable{CodeGlyphX.BarcodeType} required
options CodeGlyphX.ImageDecodeOptions required
decodeOptions CodeGlyphX.BarcodeDecodeOptions required
decoded CodeGlyphX.BarcodeDecoded@ required
TryDecodeImage(System.ReadOnlySpan{System.Byte} image, System.Nullable{CodeGlyphX.BarcodeType} expectedType, CodeGlyphX.ImageDecodeOptions options, CodeGlyphX.BarcodeDecodeOptions decodeOptions, System.Threading.CancellationToken cancellationToken, CodeGlyphX.BarcodeDecoded@ decoded) #

Attempts to decode a barcode from common image formats (PNG/BMP/PPM/PBM/PGM/PAM/XBM/XPM/TGA) with an optional expected type hint, image decode options, barcode decode options, and cancellation.

Parameters

image System.ReadOnlySpan{System.Byte} required
expectedType System.Nullable{CodeGlyphX.BarcodeType} required
options CodeGlyphX.ImageDecodeOptions required
decodeOptions CodeGlyphX.BarcodeDecodeOptions required
cancellationToken System.Threading.CancellationToken required
decoded CodeGlyphX.BarcodeDecoded@ required
TryDecodeImage(System.IO.Stream stream, CodeGlyphX.BarcodeDecoded@ decoded) #

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

Parameters

stream System.IO.Stream required
decoded CodeGlyphX.BarcodeDecoded@ required
TryDecodeImage(System.IO.Stream stream, System.Threading.CancellationToken cancellationToken, CodeGlyphX.BarcodeDecoded@ decoded) #

Attempts to decode a barcode from an image stream (PNG/BMP/PPM/PBM/PGM/PAM/XBM/XPM/TGA), with cancellation.

Parameters

stream System.IO.Stream required
cancellationToken System.Threading.CancellationToken required
decoded CodeGlyphX.BarcodeDecoded@ required
TryDecodeImage(System.IO.Stream stream, System.Nullable{CodeGlyphX.BarcodeType} expectedType, CodeGlyphX.BarcodeDecoded@ decoded) #

Attempts to decode a barcode from an image stream (PNG/BMP/PPM/PBM/PGM/PAM/XBM/XPM/TGA) with an optional expected type hint.

Parameters

stream System.IO.Stream required
expectedType System.Nullable{CodeGlyphX.BarcodeType} required
decoded CodeGlyphX.BarcodeDecoded@ required
TryDecodeImage(System.IO.Stream stream, System.Nullable{CodeGlyphX.BarcodeType} expectedType, CodeGlyphX.ImageDecodeOptions options, CodeGlyphX.BarcodeDecoded@ decoded) #

Attempts to decode a barcode from an image stream (PNG/BMP/PPM/PBM/PGM/PAM/XBM/XPM/TGA) with an optional expected type hint and image decode options.

Parameters

stream System.IO.Stream required
expectedType System.Nullable{CodeGlyphX.BarcodeType} required
options CodeGlyphX.ImageDecodeOptions required
decoded CodeGlyphX.BarcodeDecoded@ required
TryDecodeImage(System.IO.Stream stream, System.Nullable{CodeGlyphX.BarcodeType} expectedType, CodeGlyphX.ImageDecodeOptions options, CodeGlyphX.BarcodeDecodeOptions decodeOptions, CodeGlyphX.BarcodeDecoded@ decoded) #

Attempts to decode a barcode from an image stream (PNG/BMP/PPM/PBM/PGM/PAM/XBM/XPM/TGA) with an optional expected type hint, image decode options, and barcode decode options.

Parameters

stream System.IO.Stream required
expectedType System.Nullable{CodeGlyphX.BarcodeType} required
options CodeGlyphX.ImageDecodeOptions required
decodeOptions CodeGlyphX.BarcodeDecodeOptions required
decoded CodeGlyphX.BarcodeDecoded@ required
TryDecodeImage(System.IO.Stream stream, System.Nullable{CodeGlyphX.BarcodeType} expectedType, System.Threading.CancellationToken cancellationToken, CodeGlyphX.BarcodeDecoded@ decoded) #

Attempts to decode a barcode from an image stream (PNG/BMP/PPM/PBM/PGM/PAM/XBM/XPM/TGA) with an optional expected type hint, with cancellation.

Parameters

stream System.IO.Stream required
expectedType System.Nullable{CodeGlyphX.BarcodeType} required
cancellationToken System.Threading.CancellationToken required
decoded CodeGlyphX.BarcodeDecoded@ required
TryDecodeImage(System.IO.Stream stream, System.Nullable{CodeGlyphX.BarcodeType} expectedType, CodeGlyphX.ImageDecodeOptions options, System.Threading.CancellationToken cancellationToken, CodeGlyphX.BarcodeDecoded@ decoded) #

Attempts to decode a barcode from an image stream (PNG/BMP/PPM/PBM/PGM/PAM/XBM/XPM/TGA) with an optional expected type hint and image decode options, with cancellation.

Parameters

stream System.IO.Stream required
expectedType System.Nullable{CodeGlyphX.BarcodeType} required
options CodeGlyphX.ImageDecodeOptions required
cancellationToken System.Threading.CancellationToken required
decoded CodeGlyphX.BarcodeDecoded@ required
TryDecodeImage(System.IO.Stream stream, System.Nullable{CodeGlyphX.BarcodeType} expectedType, CodeGlyphX.ImageDecodeOptions options, CodeGlyphX.BarcodeDecodeOptions decodeOptions, System.Threading.CancellationToken cancellationToken, CodeGlyphX.BarcodeDecoded@ decoded) #

Attempts to decode a barcode from an image stream (PNG/BMP/PPM/PBM/PGM/PAM/XBM/XPM/TGA) with an optional expected type hint, image decode options, barcode decode options, and cancellation.

Parameters

stream System.IO.Stream required
expectedType System.Nullable{CodeGlyphX.BarcodeType} required
options CodeGlyphX.ImageDecodeOptions required
decodeOptions CodeGlyphX.BarcodeDecodeOptions required
cancellationToken System.Threading.CancellationToken required
decoded CodeGlyphX.BarcodeDecoded@ required
TryDecodePng 14 overloads
public static Boolean TryDecodePng(Stream stream, out BarcodeDecoded decoded) #
Returns: Boolean

Attempts to decode a barcode from PNG bytes.

Parameters

png System.Byte[] requiredposition: 0
decoded CodeGlyphX.BarcodeDecoded@ requiredposition: 1
public static Boolean TryDecodePng(Stream stream, ImageDecodeOptions options, out BarcodeDecoded decoded) #
Returns: Boolean

Attempts to decode a barcode from PNG bytes, with cancellation.

Parameters

png System.Byte[] requiredposition: 0
cancellationToken System.Threading.CancellationToken requiredposition: 1
decoded CodeGlyphX.BarcodeDecoded@ requiredposition: 2
TryDecodePng(System.Byte[] png, System.Nullable{CodeGlyphX.BarcodeType} expectedType, CodeGlyphX.BarcodeDecoded@ decoded) #

Attempts to decode a barcode from PNG bytes with an optional expected type hint.

Parameters

png System.Byte[] required
expectedType System.Nullable{CodeGlyphX.BarcodeType} required
decoded CodeGlyphX.BarcodeDecoded@ required
public static Boolean TryDecodePng(Stream stream, ImageDecodeOptions options, CancellationToken cancellationToken, out BarcodeDecoded decoded) #
Returns: Boolean

Attempts to decode a barcode from PNG bytes with an optional expected type hint and image decode options.

Parameters

png System.Byte[] requiredposition: 0
expectedType System.Nullable{CodeGlyphX.BarcodeType} requiredposition: 1
options CodeGlyphX.ImageDecodeOptions requiredposition: 2
decoded CodeGlyphX.BarcodeDecoded@ requiredposition: 3
public static Boolean TryDecodePng(Stream stream, ImageDecodeOptions options, BarcodeDecodeOptions decodeOptions, CancellationToken cancellationToken, out BarcodeDecoded decoded) #
Returns: Boolean

Attempts to decode a barcode from PNG bytes with an optional expected type hint, image decode options, and barcode decode options.

Parameters

png System.Byte[] requiredposition: 0
expectedType System.Nullable{CodeGlyphX.BarcodeType} requiredposition: 1
options CodeGlyphX.ImageDecodeOptions requiredposition: 2
decodeOptions CodeGlyphX.BarcodeDecodeOptions requiredposition: 3
decoded CodeGlyphX.BarcodeDecoded@ requiredposition: 4
TryDecodePng(System.Byte[] png, System.Nullable{CodeGlyphX.BarcodeType} expectedType, System.Threading.CancellationToken cancellationToken, CodeGlyphX.BarcodeDecoded@ decoded) #

Attempts to decode a barcode from PNG bytes with an optional expected type hint, with cancellation.

Parameters

png System.Byte[] required
expectedType System.Nullable{CodeGlyphX.BarcodeType} required
cancellationToken System.Threading.CancellationToken required
decoded CodeGlyphX.BarcodeDecoded@ required
TryDecodePng(System.Byte[] png, System.Nullable{CodeGlyphX.BarcodeType} expectedType, CodeGlyphX.ImageDecodeOptions options, System.Threading.CancellationToken cancellationToken, CodeGlyphX.BarcodeDecoded@ decoded) #

Attempts to decode a barcode from PNG bytes with an optional expected type hint and image decode options, with cancellation.

Parameters

png System.Byte[] required
expectedType System.Nullable{CodeGlyphX.BarcodeType} required
options CodeGlyphX.ImageDecodeOptions required
cancellationToken System.Threading.CancellationToken required
decoded CodeGlyphX.BarcodeDecoded@ required
public static Boolean TryDecodePng(Byte[] png, Nullable<BarcodeType> expectedType, ImageDecodeOptions options, BarcodeDecodeOptions decodeOptions, CancellationToken cancellationToken, out BarcodeDecoded decoded) #
Returns: Boolean

Attempts to decode a barcode from PNG bytes with an optional expected type hint, image decode options, barcode decode options, and cancellation.

Parameters

png System.Byte[] requiredposition: 0
expectedType System.Nullable{CodeGlyphX.BarcodeType} requiredposition: 1
options CodeGlyphX.ImageDecodeOptions requiredposition: 2
decodeOptions CodeGlyphX.BarcodeDecodeOptions requiredposition: 3
cancellationToken System.Threading.CancellationToken requiredposition: 4
decoded CodeGlyphX.BarcodeDecoded@ requiredposition: 5
TryDecodePng(System.IO.Stream stream, CodeGlyphX.BarcodeDecoded@ decoded) #

Attempts to decode a barcode from a PNG stream.

Parameters

stream System.IO.Stream required
decoded CodeGlyphX.BarcodeDecoded@ required
TryDecodePng(System.IO.Stream stream, System.Threading.CancellationToken cancellationToken, CodeGlyphX.BarcodeDecoded@ decoded) #

Attempts to decode a barcode from a PNG stream, with cancellation.

Parameters

stream System.IO.Stream required
cancellationToken System.Threading.CancellationToken required
decoded CodeGlyphX.BarcodeDecoded@ required
TryDecodePng(System.IO.Stream stream, CodeGlyphX.ImageDecodeOptions options, CodeGlyphX.BarcodeDecoded@ decoded) #

Attempts to decode a barcode from a PNG stream with image decode options.

Parameters

stream System.IO.Stream required
options CodeGlyphX.ImageDecodeOptions required
decoded CodeGlyphX.BarcodeDecoded@ required
TryDecodePng(System.IO.Stream stream, CodeGlyphX.ImageDecodeOptions options, CodeGlyphX.BarcodeDecodeOptions decodeOptions, CodeGlyphX.BarcodeDecoded@ decoded) #

Attempts to decode a barcode from a PNG stream with image decode options and barcode decode options.

Parameters

stream System.IO.Stream required
options CodeGlyphX.ImageDecodeOptions required
decodeOptions CodeGlyphX.BarcodeDecodeOptions required
decoded CodeGlyphX.BarcodeDecoded@ required
TryDecodePng(System.IO.Stream stream, CodeGlyphX.ImageDecodeOptions options, System.Threading.CancellationToken cancellationToken, CodeGlyphX.BarcodeDecoded@ decoded) #

Attempts to decode a barcode from a PNG stream with image decode options, with cancellation.

Parameters

stream System.IO.Stream required
options CodeGlyphX.ImageDecodeOptions required
cancellationToken System.Threading.CancellationToken required
decoded CodeGlyphX.BarcodeDecoded@ required
TryDecodePng(System.IO.Stream stream, CodeGlyphX.ImageDecodeOptions options, CodeGlyphX.BarcodeDecodeOptions decodeOptions, System.Threading.CancellationToken cancellationToken, CodeGlyphX.BarcodeDecoded@ decoded) #

Attempts to decode a barcode from a PNG stream with image decode options, barcode decode options, and cancellation.

Parameters

stream System.IO.Stream required
options CodeGlyphX.ImageDecodeOptions required
decodeOptions CodeGlyphX.BarcodeDecodeOptions required
cancellationToken System.Threading.CancellationToken required
decoded CodeGlyphX.BarcodeDecoded@ required
TryDecodePngFile 6 overloads
public static Boolean TryDecodePngFile(String path, out BarcodeDecoded decoded) #
Returns: Boolean

Attempts to decode a barcode from a PNG file.

Parameters

path System.String requiredposition: 0
decoded CodeGlyphX.BarcodeDecoded@ requiredposition: 1
public static Boolean TryDecodePngFile(String path, ImageDecodeOptions options, out BarcodeDecoded decoded) #
Returns: Boolean

Attempts to decode a barcode from a PNG file, with cancellation.

Parameters

path System.String requiredposition: 0
cancellationToken System.Threading.CancellationToken requiredposition: 1
decoded CodeGlyphX.BarcodeDecoded@ requiredposition: 2
TryDecodePngFile(System.String path, CodeGlyphX.ImageDecodeOptions options, CodeGlyphX.BarcodeDecoded@ decoded) #

Attempts to decode a barcode from a PNG file with image decode options.

Parameters

path System.String required
options CodeGlyphX.ImageDecodeOptions required
decoded CodeGlyphX.BarcodeDecoded@ required
public static Boolean TryDecodePngFile(String path, ImageDecodeOptions options, CancellationToken cancellationToken, out BarcodeDecoded decoded) #
Returns: Boolean

Attempts to decode a barcode from a PNG file with image decode options and barcode decode options.

Parameters

path System.String requiredposition: 0
options CodeGlyphX.ImageDecodeOptions requiredposition: 1
decodeOptions CodeGlyphX.BarcodeDecodeOptions requiredposition: 2
decoded CodeGlyphX.BarcodeDecoded@ requiredposition: 3
TryDecodePngFile(System.String path, CodeGlyphX.ImageDecodeOptions options, System.Threading.CancellationToken cancellationToken, CodeGlyphX.BarcodeDecoded@ decoded) #

Attempts to decode a barcode from a PNG file with image decode options, with cancellation.

Parameters

path System.String required
options CodeGlyphX.ImageDecodeOptions required
cancellationToken System.Threading.CancellationToken required
decoded CodeGlyphX.BarcodeDecoded@ required
public static Boolean TryDecodePngFile(String path, ImageDecodeOptions options, BarcodeDecodeOptions decodeOptions, CancellationToken cancellationToken, out BarcodeDecoded decoded) #
Returns: Boolean

Attempts to decode a barcode from a PNG file with image decode options, barcode decode options, and cancellation.

Parameters

path System.String requiredposition: 0
options CodeGlyphX.ImageDecodeOptions requiredposition: 1
decodeOptions CodeGlyphX.BarcodeDecodeOptions requiredposition: 2
cancellationToken System.Threading.CancellationToken requiredposition: 3
decoded CodeGlyphX.BarcodeDecoded@ requiredposition: 4
public static Byte[] Webp(BarcodeType type, String content, BarcodeOptions options = null) #
Returns: Byte[]
Obsolete("Use Render(..., OutputFormat) with RenderedOutput/OutputWriter (and RenderExtras for HTML/PDF/EPS). Legacy per-format helpers will be removed in a future release.")

Renders a barcode as WebP.

Parameters

type CodeGlyphX.BarcodeType requiredposition: 0
content System.String requiredposition: 1
options CodeGlyphX.BarcodeOptions = null optionalposition: 2
public static String Xbm(BarcodeType type, String content, BarcodeOptions options = null) #
Returns: String
Obsolete("Use Render(..., OutputFormat) with RenderedOutput/OutputWriter (and RenderExtras for HTML/PDF/EPS). Legacy per-format helpers will be removed in a future release.")

Renders a barcode as XBM.

Parameters

type CodeGlyphX.BarcodeType requiredposition: 0
content System.String requiredposition: 1
options CodeGlyphX.BarcodeOptions = null optionalposition: 2
public static String Xpm(BarcodeType type, String content, BarcodeOptions options = null) #
Returns: String
Obsolete("Use Render(..., OutputFormat) with RenderedOutput/OutputWriter (and RenderExtras for HTML/PDF/EPS). Legacy per-format helpers will be removed in a future release.")

Renders a barcode as XPM.

Parameters

type CodeGlyphX.BarcodeType requiredposition: 0
content System.String requiredposition: 1
options CodeGlyphX.BarcodeOptions = null optionalposition: 2