Table of Contents

Class PngRenderer

Namespace
ItTiger.TigerCli.PngSink
Assembly
ItTiger.TigerCli.PngSink.dll
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

grid CliGrid
options PngSinkOptions

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

grid CliGrid
path string
options PngSinkOptions

Exceptions

ArgumentNullException
path is 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

grid CliGrid
stream Stream
options PngSinkOptions

Exceptions

ArgumentNullException
grid or stream is 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

component CliRenderableComponent
options PngSinkOptions

Returns

byte[]

Exceptions

ArgumentNullException
component is null.