API Reference
Class
MatrixPgmRenderer
Renders matrix modules to PGM (P5).
Inheritance
- Object
- MatrixPgmRenderer
Methods
public static Byte[] Render(BitMatrix modules, MatrixPngRenderOptions opts) #Returns:
Byte[]Renders the module matrix to a PGM byte array.
Parameters
- modules CodeGlyphX.BitMatrix
- opts CodeGlyphX.Rendering.Png.MatrixPngRenderOptions
RenderToFile 2 overloads
public static String RenderToFile(BitMatrix modules, MatrixPngRenderOptions opts, String path) #Returns:
StringRenders the module matrix to a PGM file.
Parameters
- modules CodeGlyphX.BitMatrix
- opts CodeGlyphX.Rendering.Png.MatrixPngRenderOptions
- path System.String
public static String RenderToFile(BitMatrix modules, MatrixPngRenderOptions opts, String directory, String fileName) #Returns:
StringRenders the module matrix to a PGM file under the specified directory.
Parameters
- modules CodeGlyphX.BitMatrix
- opts CodeGlyphX.Rendering.Png.MatrixPngRenderOptions
- directory System.String
- fileName System.String
public static Void RenderToStream(BitMatrix modules, MatrixPngRenderOptions opts, Stream stream) #Returns:
VoidRenders the module matrix to a PGM stream.
Parameters
- modules CodeGlyphX.BitMatrix
- opts CodeGlyphX.Rendering.Png.MatrixPngRenderOptions
- stream System.IO.Stream