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