API Reference
Class
SvgQrRenderer
Renders QR modules to SVG.
Inheritance
- Object
- SvgQrRenderer
Methods
public static String Render(BitMatrix modules, QrSvgRenderOptions opts) #Returns:
StringRenders the QR module matrix to an SVG string.
Parameters
- modules CodeGlyphX.BitMatrix
- opts CodeGlyphX.Rendering.Svg.QrSvgRenderOptions
RenderToFile 2 overloads
public static String RenderToFile(BitMatrix modules, QrSvgRenderOptions opts, String path) #Returns:
StringRenders the QR module matrix to an SVG file.
Parameters
- modules CodeGlyphX.BitMatrix
- QR modules.
- opts CodeGlyphX.Rendering.Svg.QrSvgRenderOptions
- Rendering options.
- path System.String
- Output file path.
Returns
The output file path.
public static String RenderToFile(BitMatrix modules, QrSvgRenderOptions opts, String directory, String fileName) #Returns:
StringRenders the QR module matrix to an SVG file under the specified directory.
Parameters
- modules CodeGlyphX.BitMatrix
- QR modules.
- opts CodeGlyphX.Rendering.Svg.QrSvgRenderOptions
- Rendering options.
- directory System.String
- Output directory.
- fileName System.String
- Output file name.
Returns
The output file path.
public static Void RenderToStream(BitMatrix modules, QrSvgRenderOptions opts, Stream stream) #Returns:
VoidRenders the QR module matrix to an SVG stream.
Parameters
- modules CodeGlyphX.BitMatrix
- QR modules.
- opts CodeGlyphX.Rendering.Svg.QrSvgRenderOptions
- Rendering options.
- stream System.IO.Stream
- Target stream.