API Reference
Class
HtmlBarcodeRenderer
Renders 1D barcodes to HTML (table-based).
Inheritance
- Object
- HtmlBarcodeRenderer
Methods
public static String Render(Barcode1D barcode, BarcodeHtmlRenderOptions opts) #Returns:
StringRenders the barcode to an HTML table.
Parameters
- barcode CodeGlyphX.Barcode1D
- opts CodeGlyphX.Rendering.Html.BarcodeHtmlRenderOptions
RenderToFile 2 overloads
public static String RenderToFile(Barcode1D barcode, BarcodeHtmlRenderOptions opts, String path) #Returns:
StringRenders the barcode to an HTML file.
Parameters
- barcode CodeGlyphX.Barcode1D
- Barcode to render.
- opts CodeGlyphX.Rendering.Html.BarcodeHtmlRenderOptions
- Rendering options.
- path System.String
- Output file path.
Returns
The output file path.
public static String RenderToFile(Barcode1D barcode, BarcodeHtmlRenderOptions opts, String directory, String fileName) #Returns:
StringRenders the barcode to an HTML file under the specified directory.
Parameters
- barcode CodeGlyphX.Barcode1D
- Barcode to render.
- opts CodeGlyphX.Rendering.Html.BarcodeHtmlRenderOptions
- Rendering options.
- directory System.String
- Output directory.
- fileName System.String
- Output file name.
Returns
The output file path.
public static Void RenderToStream(Barcode1D barcode, BarcodeHtmlRenderOptions opts, Stream stream) #Returns:
VoidRenders the barcode to an HTML stream.
Parameters
- barcode CodeGlyphX.Barcode1D
- Barcode to render.
- opts CodeGlyphX.Rendering.Html.BarcodeHtmlRenderOptions
- Rendering options.
- stream System.IO.Stream
- Target stream.