ChartExtensions
ChartForgeX
Provides convenience rendering and file export methods for charts.
Inheritance
- object
- ChartExtensions
Methods
public static RasterFontInfo GetRasterFontInfo(Chart chart) #Resolves the font that would be used when rendering the chart to PNG.
Parameters
- chart ChartForgeX.Core.Chart
- The chart to inspect.
public static Chart Palette(Chart chart, params ChartColor[] colors) #Sets the default series palette on the current chart theme.
Parameters
- chart ChartForgeX.Core.Chart
- The chart to configure.
- colors ChartForgeX.Primitives.ChartColor[]
- The palette colors.
public static TBlock Palette<TBlock>(TBlock block, params ChartColor[] colors) #Sets the default palette on the current visual block theme.
Type Parameters
- TBlock
- The visual block type.
Parameters
- block TBlock
- The visual block to configure.
- colors ChartForgeX.Primitives.ChartColor[]
- The palette colors.
Returns
TBlock The current visual block.public static void Save(Chart chart, string path, RasterImageOptions? rasterOptions = null) #Saves a chart using the output path extension to choose SVG, HTML, PNG, or another raster image format.
Parameters
- chart ChartForgeX.Core.Chart
- The chart to render.
- path string
- The output file path.
- rasterOptions ChartForgeX.Core.RasterImageOptions? = null
- Optional raster export options.
public static void Save(ChartGrid grid, string path, RasterImageOptions? rasterOptions = null) #Saves a chart grid using the output path extension to choose SVG, HTML, PNG, or another raster image format.
Parameters
- grid ChartForgeX.Core.ChartGrid
- The chart grid to render.
- path string
- The output file path.
- rasterOptions ChartForgeX.Core.RasterImageOptions? = null
- Optional raster export options.
public static void Save(IVisualBlock block, string path, RasterImageOptions? rasterOptions = null) #Saves a visual block using the output path extension to choose SVG, HTML, PNG, or another raster image format.
Parameters
- block ChartForgeX.VisualBlocks.IVisualBlock
- The visual block to render.
- path string
- The output file path.
- rasterOptions ChartForgeX.Core.RasterImageOptions? = null
- Optional raster export options.
public static void SaveBmp(Chart chart, string path, RasterImageOptions? options = null) #Saves a chart as a BMP file.
Parameters
- chart ChartForgeX.Core.Chart
- The chart to render.
- path string
- The output file path.
- options ChartForgeX.Core.RasterImageOptions? = null
- Optional raster export options.
public static void SaveBmp(ChartGrid grid, string path, RasterImageOptions? options = null) #Saves a chart grid as a BMP file.
Parameters
- grid ChartForgeX.Core.ChartGrid
- The chart grid to render.
- path string
- The output file path.
- options ChartForgeX.Core.RasterImageOptions? = null
- Optional raster export options.
public static void SaveBmp(IVisualBlock block, string path, RasterImageOptions? options = null) #Saves a visual block as a BMP file.
Parameters
- block ChartForgeX.VisualBlocks.IVisualBlock
- The visual block to render.
- path string
- The output file path.
- options ChartForgeX.Core.RasterImageOptions? = null
- Optional raster export options.
public static void SaveHtml(Chart chart, string path) #Saves a chart as a complete HTML file.
Parameters
- chart ChartForgeX.Core.Chart
- The chart to render.
- path string
- The output file path.
public static void SaveHtml(ChartGrid grid, string path) #Saves a chart grid as a complete HTML file.
Parameters
- grid ChartForgeX.Core.ChartGrid
- The chart grid to render.
- path string
- The output file path.
public static void SaveHtml(IVisualBlock block, string path) #Saves a visual block as a complete HTML file.
Parameters
- block ChartForgeX.VisualBlocks.IVisualBlock
- The visual block to render.
- path string
- The output file path.
public static void SavePng(Chart chart, string path) #Saves a chart as a PNG file.
Parameters
- chart ChartForgeX.Core.Chart
- The chart to render.
- path string
- The output file path.
public static void SavePng(ChartGrid grid, string path) #Saves a chart grid as a PNG file.
Parameters
- grid ChartForgeX.Core.ChartGrid
- The chart grid to render.
- path string
- The output file path.
public static void SavePng(IVisualBlock block, string path) #Saves a visual block as a PNG file.
Parameters
- block ChartForgeX.VisualBlocks.IVisualBlock
- The visual block to render.
- path string
- The output file path.
public static void SavePpm(Chart chart, string path, RasterImageOptions? options = null) #Saves a chart as a PPM file.
Parameters
- chart ChartForgeX.Core.Chart
- The chart to render.
- path string
- The output file path.
- options ChartForgeX.Core.RasterImageOptions? = null
- Optional raster export options.
public static void SavePpm(ChartGrid grid, string path, RasterImageOptions? options = null) #Saves a chart grid as a PPM file.
Parameters
- grid ChartForgeX.Core.ChartGrid
- The chart grid to render.
- path string
- The output file path.
- options ChartForgeX.Core.RasterImageOptions? = null
- Optional raster export options.
public static void SavePpm(IVisualBlock block, string path, RasterImageOptions? options = null) #Saves a visual block as a PPM file.
Parameters
- block ChartForgeX.VisualBlocks.IVisualBlock
- The visual block to render.
- path string
- The output file path.
- options ChartForgeX.Core.RasterImageOptions? = null
- Optional raster export options.
public static void SaveRasterImage(Chart chart, string path, RasterImageFormat format, RasterImageOptions? options = null) #Saves a chart as an opaque raster image file.
Parameters
- chart ChartForgeX.Core.Chart
- The chart to render.
- path string
- The output file path.
- format ChartForgeX.Core.RasterImageFormat
- The raster image format.
- options ChartForgeX.Core.RasterImageOptions? = null
- Optional raster export options.
public static void SaveRasterImage(Chart chart, string path, RasterImageOptions? options = null) #Saves a chart as an opaque raster image file using the output path extension to choose the format.
Parameters
- chart ChartForgeX.Core.Chart
- The chart to render.
- path string
- The output file path.
- options ChartForgeX.Core.RasterImageOptions? = null
- Optional raster export options.
public static void SaveRasterImage(ChartGrid grid, string path, RasterImageFormat format, RasterImageOptions? options = null) #Saves a chart grid as an opaque raster image file.
Parameters
- grid ChartForgeX.Core.ChartGrid
- The chart grid to render.
- path string
- The output file path.
- format ChartForgeX.Core.RasterImageFormat
- The raster image format.
- options ChartForgeX.Core.RasterImageOptions? = null
- Optional raster export options.
public static void SaveRasterImage(ChartGrid grid, string path, RasterImageOptions? options = null) #Saves a chart grid as an opaque raster image file using the output path extension to choose the format.
Parameters
- grid ChartForgeX.Core.ChartGrid
- The chart grid to render.
- path string
- The output file path.
- options ChartForgeX.Core.RasterImageOptions? = null
- Optional raster export options.
public static void SaveRasterImage(IVisualBlock block, string path, RasterImageFormat format, RasterImageOptions? options = null) #Saves a visual block as an opaque raster image file.
Parameters
- block ChartForgeX.VisualBlocks.IVisualBlock
- The visual block to render.
- path string
- The output file path.
- format ChartForgeX.Core.RasterImageFormat
- The raster image format.
- options ChartForgeX.Core.RasterImageOptions? = null
- Optional raster export options.
public static void SaveRasterImage(IVisualBlock block, string path, RasterImageOptions? options = null) #Saves a visual block as an opaque raster image file using the output path extension to choose the format.
Parameters
- block ChartForgeX.VisualBlocks.IVisualBlock
- The visual block to render.
- path string
- The output file path.
- options ChartForgeX.Core.RasterImageOptions? = null
- Optional raster export options.
public static void SaveRasterImage(RgbaImage image, string path, RasterImageFormat format, RasterImageOptions? options = null) #Saves RGBA pixels to a dependency-free raster file.
Parameters
- image ChartForgeX.Raster.RgbaImage
- The image to encode.
- path string
- The output file path.
- format ChartForgeX.Core.RasterImageFormat
- The raster image format.
- options ChartForgeX.Core.RasterImageOptions? = null
- Optional raster export options.
public static void SaveRasterImage(RgbaImage image, string path, RasterImageOptions? options = null) #Saves RGBA pixels to a raster file using the output path extension to choose the format.
Parameters
- image ChartForgeX.Raster.RgbaImage
- The image to encode.
- path string
- The output file path.
- options ChartForgeX.Core.RasterImageOptions? = null
- Optional raster export options.
public static void SaveSvg(Chart chart, string path) #Saves a chart as an SVG file.
Parameters
- chart ChartForgeX.Core.Chart
- The chart to render.
- path string
- The output file path.
public static void SaveSvg(ChartGrid grid, string path) #Saves a chart grid as an SVG file.
Parameters
- grid ChartForgeX.Core.ChartGrid
- The chart grid to render.
- path string
- The output file path.
public static void SaveSvg(IVisualBlock block, string path) #Saves a visual block as an SVG file.
Parameters
- block ChartForgeX.VisualBlocks.IVisualBlock
- The visual block to render.
- path string
- The output file path.
public static void SaveTiff(Chart chart, string path, RasterImageOptions? options = null) #Saves a chart as a TIFF file.
Parameters
- chart ChartForgeX.Core.Chart
- The chart to render.
- path string
- The output file path.
- options ChartForgeX.Core.RasterImageOptions? = null
- Optional raster export options.
public static void SaveTiff(ChartGrid grid, string path, RasterImageOptions? options = null) #Saves a chart grid as a TIFF file.
Parameters
- grid ChartForgeX.Core.ChartGrid
- The chart grid to render.
- path string
- The output file path.
- options ChartForgeX.Core.RasterImageOptions? = null
- Optional raster export options.
public static void SaveTiff(IVisualBlock block, string path, RasterImageOptions? options = null) #Saves a visual block as a TIFF file.
Parameters
- block ChartForgeX.VisualBlocks.IVisualBlock
- The visual block to render.
- path string
- The output file path.
- options ChartForgeX.Core.RasterImageOptions? = null
- Optional raster export options.
public static Chart Theme(Chart chart, Action<VisualThemeBuilder> configure) #Replaces the chart theme with an independently configured immutable snapshot.
Parameters
- chart ChartForgeX.Core.Chart
- The chart to configure.
- configure System.Action<ChartForgeX.Themes.VisualThemeBuilder>
- The theme customization callback.
public static ChartGrid Theme(ChartGrid grid, Action<VisualThemeBuilder> configure) #Replaces the grid theme with an independently configured immutable snapshot.
Parameters
- grid ChartForgeX.Core.ChartGrid
- The chart grid to configure.
- configure System.Action<ChartForgeX.Themes.VisualThemeBuilder>
- The theme customization callback.
public static byte[] ToBmp(Chart chart, RasterImageOptions? options = null) #Renders a chart to BMP bytes.
Parameters
- chart ChartForgeX.Core.Chart
- The chart to render.
- options ChartForgeX.Core.RasterImageOptions? = null
- Optional raster export options.
Returns
byte[] A BMP image.public static byte[] ToBmp(ChartGrid grid, RasterImageOptions? options = null) #Renders a chart grid to BMP bytes.
Parameters
- grid ChartForgeX.Core.ChartGrid
- The chart grid to render.
- options ChartForgeX.Core.RasterImageOptions? = null
- Optional raster export options.
Returns
byte[] A BMP image.public static byte[] ToBmp(IVisualBlock block, RasterImageOptions? options = null) #Renders a visual block to BMP bytes.
Parameters
- block ChartForgeX.VisualBlocks.IVisualBlock
- The visual block to render.
- options ChartForgeX.Core.RasterImageOptions? = null
- Optional raster export options.
Returns
byte[] A BMP image.public static string ToHtmlFragment(Chart chart) #Renders a chart to a standalone HTML fragment containing inline SVG.
Parameters
- chart ChartForgeX.Core.Chart
- The chart to render.
Returns
string An HTML fragment.public static string ToHtmlFragment(Chart chart, string idScope) #Renders a chart to an HTML fragment with an additional deterministic ID scope.
Parameters
- chart ChartForgeX.Core.Chart
- The chart to render.
- idScope string
- A caller-provided scope used to keep IDs unique when embedding equivalent fragments together.
Returns
string An HTML fragment.public static string ToHtmlFragment(ChartGrid grid) #Renders a chart grid to a standalone HTML fragment containing inline SVG charts.
Parameters
- grid ChartForgeX.Core.ChartGrid
- The chart grid to render.
Returns
string An HTML fragment.public static string ToHtmlFragment(ChartGrid grid, string idScope) #Renders a chart grid to an HTML fragment with an additional deterministic ID scope.
Parameters
- grid ChartForgeX.Core.ChartGrid
- The chart grid to render.
- idScope string
- A caller-provided scope used to keep IDs unique when embedding equivalent fragments together.
Returns
string An HTML fragment.public static string ToHtmlFragment(IVisualBlock block) #Renders a visual block to a standalone HTML fragment containing inline SVG.
Parameters
- block ChartForgeX.VisualBlocks.IVisualBlock
- The visual block to render.
Returns
string An HTML fragment.public static string ToHtmlFragment(IVisualBlock block, string idScope) #Renders a visual block to an HTML fragment with an additional deterministic ID scope.
Parameters
- block ChartForgeX.VisualBlocks.IVisualBlock
- The visual block to render.
- idScope string
- A caller-provided scope used to keep IDs unique when embedding equivalent fragments together.
Returns
string An HTML fragment.public static string ToHtmlPage(Chart chart) #Renders a chart to a complete HTML document.
Parameters
- chart ChartForgeX.Core.Chart
- The chart to render.
Returns
string An HTML page.public static string ToHtmlPage(ChartGrid grid) #Renders a chart grid to a complete HTML document.
Parameters
- grid ChartForgeX.Core.ChartGrid
- The chart grid to render.
Returns
string An HTML page.public static string ToHtmlPage(IVisualBlock block) #Renders a visual block to a complete HTML document.
Parameters
- block ChartForgeX.VisualBlocks.IVisualBlock
- The visual block to render.
Returns
string An HTML page.public static byte[] ToJpeg(RgbaImage image, RasterImageOptions? options = null) #Encodes RGBA pixels to JPEG bytes after flattening transparent pixels against the configured background.
Parameters
- image ChartForgeX.Raster.RgbaImage
- The image to encode.
- options ChartForgeX.Core.RasterImageOptions? = null
- Optional raster export options.
Returns
byte[] A JPEG image.public static byte[] ToPng(Chart chart) #Renders a chart to PNG bytes.
Parameters
- chart ChartForgeX.Core.Chart
- The chart to render.
Returns
byte[] A PNG image.public static byte[] ToPng(ChartGrid grid) #Renders a chart grid to PNG bytes.
Parameters
- grid ChartForgeX.Core.ChartGrid
- The chart grid to render.
Returns
byte[] A PNG image.public static byte[] ToPng(IVisualBlock block) #Renders a visual block to PNG bytes.
Parameters
- block ChartForgeX.VisualBlocks.IVisualBlock
- The visual block to render.
Returns
byte[] A PNG image.public static byte[] ToPng(RgbaImage image) #Encodes RGBA pixels to PNG bytes.
Parameters
- image ChartForgeX.Raster.RgbaImage
- The image to encode.
Returns
byte[] A PNG image.public static byte[] ToPng(RgbaImage image, RasterImageOptions? options) #Encodes an RGBA image as PNG bytes using dependency-free raster options.
Parameters
- image ChartForgeX.Raster.RgbaImage
- options ChartForgeX.Core.RasterImageOptions?
Returns
byte[]public static byte[] ToPpm(Chart chart, RasterImageOptions? options = null) #Renders a chart to PPM bytes.
Parameters
- chart ChartForgeX.Core.Chart
- The chart to render.
- options ChartForgeX.Core.RasterImageOptions? = null
- Optional raster export options.
Returns
byte[] A PPM image.public static byte[] ToPpm(ChartGrid grid, RasterImageOptions? options = null) #Renders a chart grid to PPM bytes.
Parameters
- grid ChartForgeX.Core.ChartGrid
- The chart grid to render.
- options ChartForgeX.Core.RasterImageOptions? = null
- Optional raster export options.
Returns
byte[] A PPM image.public static byte[] ToPpm(IVisualBlock block, RasterImageOptions? options = null) #Renders a visual block to PPM bytes.
Parameters
- block ChartForgeX.VisualBlocks.IVisualBlock
- The visual block to render.
- options ChartForgeX.Core.RasterImageOptions? = null
- Optional raster export options.
Returns
byte[] A PPM image.public static byte[] ToRasterImage(Chart chart, RasterImageFormat format, RasterImageOptions? options = null) #Renders a chart to opaque raster image bytes.
Parameters
- chart ChartForgeX.Core.Chart
- The chart to render.
- format ChartForgeX.Core.RasterImageFormat
- The raster image format.
- options ChartForgeX.Core.RasterImageOptions? = null
- Optional raster export options.
Returns
byte[] Encoded raster image bytes.public static byte[] ToRasterImage(ChartGrid grid, RasterImageFormat format, RasterImageOptions? options = null) #Renders a chart grid to opaque raster image bytes.
Parameters
- grid ChartForgeX.Core.ChartGrid
- The chart grid to render.
- format ChartForgeX.Core.RasterImageFormat
- The raster image format.
- options ChartForgeX.Core.RasterImageOptions? = null
- Optional raster export options.
Returns
byte[] Encoded raster image bytes.public static byte[] ToRasterImage(IVisualBlock block, RasterImageFormat format, RasterImageOptions? options = null) #Renders a visual block to opaque raster image bytes.
Parameters
- block ChartForgeX.VisualBlocks.IVisualBlock
- The visual block to render.
- format ChartForgeX.Core.RasterImageFormat
- The raster image format.
- options ChartForgeX.Core.RasterImageOptions? = null
- Optional raster export options.
Returns
byte[] Encoded raster image bytes.public static byte[] ToRasterImage(RgbaImage image, RasterImageFormat format, RasterImageOptions? options = null) #Encodes RGBA pixels to a dependency-free raster format.
Parameters
- image ChartForgeX.Raster.RgbaImage
- The image to encode.
- format ChartForgeX.Core.RasterImageFormat
- The raster image format.
- options ChartForgeX.Core.RasterImageOptions? = null
- Optional raster export options.
Returns
byte[] Encoded raster image bytes.public static RgbaImage ToRgbaImage(Chart chart) #Renders a chart directly to an in-memory RGBA image without encoding it.
Parameters
- chart ChartForgeX.Core.Chart
- The chart to render.
public static RgbaImage ToRgbaImage(ChartGrid grid) #Renders a chart grid directly to an in-memory RGBA image without encoding it.
Parameters
- grid ChartForgeX.Core.ChartGrid
- The chart grid to render.
public static RgbaImage ToRgbaImage(IVisualBlock block) #Renders a visual block directly to an in-memory RGBA image without encoding it.
Parameters
- block ChartForgeX.VisualBlocks.IVisualBlock
- The visual block to render.
public static string ToSvg(Chart chart) #Renders a chart to SVG markup.
Parameters
- chart ChartForgeX.Core.Chart
- The chart to render.
Returns
string SVG markup.public static string ToSvg(Chart chart, string idScope) #Renders a chart to SVG markup with an additional deterministic ID scope.
Parameters
- chart ChartForgeX.Core.Chart
- The chart to render.
- idScope string
- A caller-provided scope used to keep SVG element IDs unique when embedding multiple SVGs in one document.
Returns
string SVG markup.public static string ToSvg(Chart chart, VisualSvgOptions options, string? idScope) #Renders a chart with an explicit SVG export policy and optional host ID scope.
Parameters
- chart ChartForgeX.Core.Chart
- The chart to render.
- options ChartForgeX.Rendering.VisualSvgOptions
- The SVG policy, including any host color variables. The supplied policy is not mutated.
- idScope string?
- An external host scope, converted to a deterministic SVG namespace; null retains the policy's namespace.
Returns
string SVG markup.public static string ToSvg(ChartGrid grid) #Renders a chart grid to SVG markup.
Parameters
- grid ChartForgeX.Core.ChartGrid
- The chart grid to render.
Returns
string SVG markup.public static string ToSvg(ChartGrid grid, string idScope) #Renders a chart grid to SVG markup with an additional deterministic ID scope.
Parameters
- grid ChartForgeX.Core.ChartGrid
- The chart grid to render.
- idScope string
- A caller-provided scope used to keep SVG element IDs unique when embedding multiple SVG grids in one document.
Returns
string SVG markup.public static string ToSvg(IVisualBlock block) #Renders a visual block to SVG markup.
Parameters
- block ChartForgeX.VisualBlocks.IVisualBlock
- The visual block to render.
Returns
string SVG markup.public static string ToSvg(IVisualBlock block, string idScope) #Renders a visual block to SVG markup with an additional deterministic ID scope.
Parameters
- block ChartForgeX.VisualBlocks.IVisualBlock
- The visual block to render.
- idScope string
- A caller-provided scope used to keep SVG element IDs unique when embedding multiple SVGs in one document.
Returns
string SVG markup.public static byte[] ToTiff(Chart chart, RasterImageOptions? options = null) #Renders a chart to TIFF bytes.
Parameters
- chart ChartForgeX.Core.Chart
- The chart to render.
- options ChartForgeX.Core.RasterImageOptions? = null
- Optional raster export options.
Returns
byte[] A TIFF image.public static byte[] ToTiff(ChartGrid grid, RasterImageOptions? options = null) #Renders a chart grid to TIFF bytes.
Parameters
- grid ChartForgeX.Core.ChartGrid
- The chart grid to render.
- options ChartForgeX.Core.RasterImageOptions? = null
- Optional raster export options.
Returns
byte[] A TIFF image.public static byte[] ToTiff(IVisualBlock block, RasterImageOptions? options = null) #Renders a visual block to TIFF bytes.
Parameters
- block ChartForgeX.VisualBlocks.IVisualBlock
- The visual block to render.
- options ChartForgeX.Core.RasterImageOptions? = null
- Optional raster export options.
Returns
byte[] A TIFF image.public static void WriteBmp(Chart chart, Stream stream, RasterImageOptions? options = null) #Writes a chart to a BMP stream.
Parameters
- chart ChartForgeX.Core.Chart
- The chart to render.
- stream System.IO.Stream
- The destination stream.
- options ChartForgeX.Core.RasterImageOptions? = null
- Optional raster export options.
public static void WriteBmp(ChartGrid grid, Stream stream, RasterImageOptions? options = null) #Writes a chart grid to a BMP stream.
Parameters
- grid ChartForgeX.Core.ChartGrid
- The chart grid to render.
- stream System.IO.Stream
- The destination stream.
- options ChartForgeX.Core.RasterImageOptions? = null
- Optional raster export options.
public static void WriteBmp(IVisualBlock block, Stream stream, RasterImageOptions? options = null) #Writes a visual block to a BMP stream.
Parameters
- block ChartForgeX.VisualBlocks.IVisualBlock
- The visual block to render.
- stream System.IO.Stream
- The destination stream.
- options ChartForgeX.Core.RasterImageOptions? = null
- Optional raster export options.
public static void WritePpm(Chart chart, Stream stream, RasterImageOptions? options = null) #Writes a chart to a PPM stream.
Parameters
- chart ChartForgeX.Core.Chart
- The chart to render.
- stream System.IO.Stream
- The destination stream.
- options ChartForgeX.Core.RasterImageOptions? = null
- Optional raster export options.
public static void WritePpm(ChartGrid grid, Stream stream, RasterImageOptions? options = null) #Writes a chart grid to a PPM stream.
Parameters
- grid ChartForgeX.Core.ChartGrid
- The chart grid to render.
- stream System.IO.Stream
- The destination stream.
- options ChartForgeX.Core.RasterImageOptions? = null
- Optional raster export options.
public static void WritePpm(IVisualBlock block, Stream stream, RasterImageOptions? options = null) #Writes a visual block to a PPM stream.
Parameters
- block ChartForgeX.VisualBlocks.IVisualBlock
- The visual block to render.
- stream System.IO.Stream
- The destination stream.
- options ChartForgeX.Core.RasterImageOptions? = null
- Optional raster export options.
public static void WriteRasterImage(Chart chart, Stream stream, RasterImageFormat format, RasterImageOptions? options = null) #Writes a chart to an opaque raster image stream.
Parameters
- chart ChartForgeX.Core.Chart
- The chart to render.
- stream System.IO.Stream
- The destination stream.
- format ChartForgeX.Core.RasterImageFormat
- The raster image format.
- options ChartForgeX.Core.RasterImageOptions? = null
- Optional raster export options.
public static void WriteRasterImage(ChartGrid grid, Stream stream, RasterImageFormat format, RasterImageOptions? options = null) #Writes a chart grid to an opaque raster image stream.
Parameters
- grid ChartForgeX.Core.ChartGrid
- The chart grid to render.
- stream System.IO.Stream
- The destination stream.
- format ChartForgeX.Core.RasterImageFormat
- The raster image format.
- options ChartForgeX.Core.RasterImageOptions? = null
- Optional raster export options.
public static void WriteRasterImage(IVisualBlock block, Stream stream, RasterImageFormat format, RasterImageOptions? options = null) #Writes a visual block to an opaque raster image stream.
Parameters
- block ChartForgeX.VisualBlocks.IVisualBlock
- The visual block to render.
- stream System.IO.Stream
- The destination stream.
- format ChartForgeX.Core.RasterImageFormat
- The raster image format.
- options ChartForgeX.Core.RasterImageOptions? = null
- Optional raster export options.
public static void WriteRasterImage(RgbaImage image, Stream stream, RasterImageFormat format, RasterImageOptions? options = null) #Writes RGBA pixels to a dependency-free raster stream.
Parameters
- image ChartForgeX.Raster.RgbaImage
- The image to encode.
- stream System.IO.Stream
- The destination stream.
- format ChartForgeX.Core.RasterImageFormat
- The raster image format.
- options ChartForgeX.Core.RasterImageOptions? = null
- Optional raster export options.
public static void WriteTiff(Chart chart, Stream stream, RasterImageOptions? options = null) #Writes a chart to a TIFF stream.
Parameters
- chart ChartForgeX.Core.Chart
- The chart to render.
- stream System.IO.Stream
- The destination stream.
- options ChartForgeX.Core.RasterImageOptions? = null
- Optional raster export options.
public static void WriteTiff(ChartGrid grid, Stream stream, RasterImageOptions? options = null) #Writes a chart grid to a TIFF stream.
Parameters
- grid ChartForgeX.Core.ChartGrid
- The chart grid to render.
- stream System.IO.Stream
- The destination stream.
- options ChartForgeX.Core.RasterImageOptions? = null
- Optional raster export options.
public static void WriteTiff(IVisualBlock block, Stream stream, RasterImageOptions? options = null) #Writes a visual block to a TIFF stream.
Parameters
- block ChartForgeX.VisualBlocks.IVisualBlock
- The visual block to render.
- stream System.IO.Stream
- The destination stream.
- options ChartForgeX.Core.RasterImageOptions? = null
- Optional raster export options.