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