ItTiger.TigerCli.PngSink
0.9.4
dotnet add package ItTiger.TigerCli.PngSink --version 0.9.4
NuGet\Install-Package ItTiger.TigerCli.PngSink -Version 0.9.4
<PackageReference Include="ItTiger.TigerCli.PngSink" Version="0.9.4" />
<PackageVersion Include="ItTiger.TigerCli.PngSink" Version="0.9.4" />
<PackageReference Include="ItTiger.TigerCli.PngSink" />
paket add ItTiger.TigerCli.PngSink --version 0.9.4
#r "nuget: ItTiger.TigerCli.PngSink, 0.9.4"
#:package ItTiger.TigerCli.PngSink@0.9.4
#addin nuget:?package=ItTiger.TigerCli.PngSink&version=0.9.4
#tool nuget:?package=ItTiger.TigerCli.PngSink&version=0.9.4
ItTiger.TigerCli.PngSink
ItTiger.TigerCli.PngSink renders TigerCli output to deterministic PNG images. It is an optional
companion to ItTiger.TigerCli for generated
documentation artifacts, examples, visual review, and project documentation.
The package implements TigerCli's rendering-sink model with SkiaSharp and bundled fonts, so PNG output uses the same resolved text segments, terminal palette, and structured rendering pipeline as the console and HTML sinks.
Installation
dotnet add package ItTiger.TigerCli.PngSink --version 0.9.4
ItTiger.TigerCli is installed transitively.
Basic usage
Create or obtain a TigerCli grid, then render it to a file with explicit terminal dimensions:
using ItTiger.TigerCli.PngSink;
using ItTiger.TigerCli.Rendering;
var grid = new CliGrid(1, 1);
grid.Set(0, 0, "Hello from TigerCli");
PngRenderer.RenderGridToFile(
grid,
"tigercli-output.png",
new PngSinkOptions
{
Columns = 40,
Rows = 5,
Chrome = PngWindowChrome.FrameAndTitle,
Title = "TigerCli example"
});
PngRenderer can also write to a stream or return PNG bytes. For lower-level control, use
PngSink directly as an ICliRenderSink and call Save or ToBytes after rendering.
Links
An open-source project by IT Tiger.
| Product | Versions Compatible and additional computed target framework versions. |
|---|---|
| .NET | net10.0 is compatible. net10.0-android was computed. net10.0-browser was computed. net10.0-ios was computed. net10.0-maccatalyst was computed. net10.0-macos was computed. net10.0-tvos was computed. net10.0-windows was computed. |
-
net10.0
- ItTiger.TigerCli (>= 0.9.4)
- SkiaSharp (>= 4.148.0)
- SkiaSharp.NativeAssets.Linux.NoDependencies (>= 4.148.0)
NuGet packages
This package is not used by any NuGet packages.
GitHub repositories
This package is not used by any popular GitHub repositories.