Class PngRenderer
Convenience methods for rendering TigerCli grids and renderable components to PNG output.
public static class PngRenderer
- Inheritance
-
PngRenderer
- Inherited Members
Methods
RenderGridToBytes(CliGrid, PngSinkOptions)
Renders
grid with options and returns PNG bytes.public static byte[] RenderGridToBytes(CliGrid grid, PngSinkOptions options)
Parameters
gridCliGridoptionsPngSinkOptions
Returns
- byte[]
RenderGridToFile(CliGrid, string, PngSinkOptions)
Renders
grid with options and writes the PNG to path.public static void RenderGridToFile(CliGrid grid, string path, PngSinkOptions options)
Parameters
gridCliGridpathstringoptionsPngSinkOptions
Exceptions
- ArgumentNullException
pathis null.
RenderGridToStream(CliGrid, Stream, PngSinkOptions)
Renders
grid with options and writes the PNG to stream.public static void RenderGridToStream(CliGrid grid, Stream stream, PngSinkOptions options)
Parameters
gridCliGridstreamStreamoptionsPngSinkOptions
Exceptions
- ArgumentNullException
gridorstreamis null.
RenderToBytes(CliRenderableComponent, PngSinkOptions)
Converts
component to a grid, renders it with options, and returns PNG bytes.public static byte[] RenderToBytes(CliRenderableComponent component, PngSinkOptions options)
Parameters
componentCliRenderableComponentoptionsPngSinkOptions
Returns
- byte[]
Exceptions
- ArgumentNullException
componentis null.