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