API Reference
ChartExtensions
Provides convenience rendering and file export methods for charts.
Inheritance
- Object
- ChartExtensions
Methods
public static Chart ConfigureTheme(Chart chart, Action<ChartTheme> configure) #ChartConfigures the current chart theme in place.
Parameters
- chart ChartForgeX.Core.Chart
- The chart to configure.
- configure System.Action<ChartForgeX.Themes.ChartTheme>
- The theme customization callback.
Returns
The current chart.
public static ChartGrid ConfigureTheme(ChartGrid grid, Action<ChartTheme> configure) #ChartGridConfigures the current chart grid theme in place, creating a light grid theme when the grid is currently automatic.
Parameters
- grid ChartForgeX.Core.ChartGrid
- The chart grid to configure.
- configure System.Action<ChartForgeX.Themes.ChartTheme>
- The theme customization callback.
Returns
The current chart grid.
public static PngFontInfo GetPngFontInfo(Chart chart) #PngFontInfoResolves the font that would be used when rendering the chart to PNG.
Parameters
- chart ChartForgeX.Core.Chart
- The chart to inspect.
Returns
The PNG font resolution details.
public static Void Save(Chart chart, String path, RasterImageOptions? rasterOptions = null) #VoidSaves 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 System.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) #VoidSaves 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 System.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) #VoidSaves 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 System.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) #VoidSaves a chart as a BMP file.
Parameters
- chart ChartForgeX.Core.Chart
- The chart to render.
- path System.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) #VoidSaves a chart grid as a BMP file.
Parameters
- grid ChartForgeX.Core.ChartGrid
- The chart grid to render.
- path System.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) #VoidSaves a visual block as a BMP file.
Parameters
- block ChartForgeX.VisualBlocks.IVisualBlock
- The visual block to render.
- path System.String
- The output file path.
- options ChartForgeX.Core.RasterImageOptions? = null
- Optional raster export options.
public static Void SaveHtml(Chart chart, String path) #VoidSaves a chart as a complete HTML file.
Parameters
- chart ChartForgeX.Core.Chart
- The chart to render.
- path System.String
- The output file path.
public static Void SaveHtml(ChartGrid grid, String path) #VoidSaves a chart grid as a complete HTML file.
Parameters
- grid ChartForgeX.Core.ChartGrid
- The chart grid to render.
- path System.String
- The output file path.
public static Void SaveHtml(IVisualBlock block, String path) #VoidSaves a visual block as a complete HTML file.
Parameters
- block ChartForgeX.VisualBlocks.IVisualBlock
- The visual block to render.
- path System.String
- The output file path.
public static Void SavePng(Chart chart, String path) #VoidSaves a chart as a PNG file.
Parameters
- chart ChartForgeX.Core.Chart
- The chart to render.
- path System.String
- The output file path.
public static Void SavePng(ChartGrid grid, String path) #VoidSaves a chart grid as a PNG file.
Parameters
- grid ChartForgeX.Core.ChartGrid
- The chart grid to render.
- path System.String
- The output file path.
public static Void SavePng(IVisualBlock block, String path) #VoidSaves a visual block as a PNG file.
Parameters
- block ChartForgeX.VisualBlocks.IVisualBlock
- The visual block to render.
- path System.String
- The output file path.
public static Void SavePpm(Chart chart, String path, RasterImageOptions? options = null) #VoidSaves a chart as a PPM file.
Parameters
- chart ChartForgeX.Core.Chart
- The chart to render.
- path System.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) #VoidSaves a chart grid as a PPM file.
Parameters
- grid ChartForgeX.Core.ChartGrid
- The chart grid to render.
- path System.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) #VoidSaves a visual block as a PPM file.
Parameters
- block ChartForgeX.VisualBlocks.IVisualBlock
- The visual block to render.
- path System.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) #VoidSaves a chart as an opaque raster image file.
Parameters
- chart ChartForgeX.Core.Chart
- The chart to render.
- path System.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) #VoidSaves 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 System.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) #VoidSaves a chart grid as an opaque raster image file.
Parameters
- grid ChartForgeX.Core.ChartGrid
- The chart grid to render.
- path System.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) #VoidSaves 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 System.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) #VoidSaves a visual block as an opaque raster image file.
Parameters
- block ChartForgeX.VisualBlocks.IVisualBlock
- The visual block to render.
- path System.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) #VoidSaves 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 System.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) #VoidSaves RGBA pixels to a dependency-free raster file.
Parameters
- image ChartForgeX.Raster.RgbaImage
- The image to encode.
- path System.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) #VoidSaves 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 System.String
- The output file path.
- options ChartForgeX.Core.RasterImageOptions? = null
- Optional raster export options.
public static Void SaveSvg(Chart chart, String path) #VoidSaves a chart as an SVG file.
Parameters
- chart ChartForgeX.Core.Chart
- The chart to render.
- path System.String
- The output file path.
public static Void SaveSvg(ChartGrid grid, String path) #VoidSaves a chart grid as an SVG file.
Parameters
- grid ChartForgeX.Core.ChartGrid
- The chart grid to render.
- path System.String
- The output file path.
public static Void SaveSvg(IVisualBlock block, String path) #VoidSaves a visual block as an SVG file.
Parameters
- block ChartForgeX.VisualBlocks.IVisualBlock
- The visual block to render.
- path System.String
- The output file path.
public static Void SaveTiff(Chart chart, String path, RasterImageOptions? options = null) #VoidSaves a chart as a TIFF file.
Parameters
- chart ChartForgeX.Core.Chart
- The chart to render.
- path System.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) #VoidSaves a chart grid as a TIFF file.
Parameters
- grid ChartForgeX.Core.ChartGrid
- The chart grid to render.
- path System.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) #VoidSaves a visual block as a TIFF file.
Parameters
- block ChartForgeX.VisualBlocks.IVisualBlock
- The visual block to render.
- path System.String
- The output file path.
- options ChartForgeX.Core.RasterImageOptions? = null
- Optional raster export options.
public static Byte[] ToBmp(Chart chart, RasterImageOptions? options = null) #Byte[]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
A BMP image.
public static Byte[] ToBmp(ChartGrid grid, RasterImageOptions? options = null) #Byte[]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
A BMP image.
public static Byte[] ToBmp(IVisualBlock block, RasterImageOptions? options = null) #Byte[]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
A BMP image.
public static String ToHtmlFragment(Chart chart) #StringRenders a chart to a standalone HTML fragment containing inline SVG.
Parameters
- chart ChartForgeX.Core.Chart
- The chart to render.
Returns
An HTML fragment.
public static String ToHtmlFragment(Chart chart, String idScope) #StringRenders a chart to an HTML fragment with an additional deterministic ID scope.
Parameters
- chart ChartForgeX.Core.Chart
- The chart to render.
- idScope System.String
- A caller-provided scope used to keep IDs unique when embedding equivalent fragments together.
Returns
An HTML fragment.
public static String ToHtmlFragment(ChartGrid grid) #StringRenders a chart grid to a standalone HTML fragment containing inline SVG charts.
Parameters
- grid ChartForgeX.Core.ChartGrid
- The chart grid to render.
Returns
An HTML fragment.
public static String ToHtmlFragment(ChartGrid grid, String idScope) #StringRenders a chart grid to an HTML fragment with an additional deterministic ID scope.
Parameters
- grid ChartForgeX.Core.ChartGrid
- The chart grid to render.
- idScope System.String
- A caller-provided scope used to keep IDs unique when embedding equivalent fragments together.
Returns
An HTML fragment.
public static String ToHtmlFragment(IVisualBlock block) #StringRenders a visual block to a standalone HTML fragment containing inline SVG.
Parameters
- block ChartForgeX.VisualBlocks.IVisualBlock
- The visual block to render.
Returns
An HTML fragment.
public static String ToHtmlFragment(IVisualBlock block, String idScope) #StringRenders a visual block to an HTML fragment with an additional deterministic ID scope.
Parameters
- block ChartForgeX.VisualBlocks.IVisualBlock
- The visual block to render.
- idScope System.String
- A caller-provided scope used to keep IDs unique when embedding equivalent fragments together.
Returns
An HTML fragment.
public static String ToHtmlPage(Chart chart) #StringRenders a chart to a complete HTML document.
Parameters
- chart ChartForgeX.Core.Chart
- The chart to render.
Returns
An HTML page.
public static String ToHtmlPage(ChartGrid grid) #StringRenders a chart grid to a complete HTML document.
Parameters
- grid ChartForgeX.Core.ChartGrid
- The chart grid to render.
Returns
An HTML page.
public static String ToHtmlPage(IVisualBlock block) #StringRenders a visual block to a complete HTML document.
Parameters
- block ChartForgeX.VisualBlocks.IVisualBlock
- The visual block to render.
Returns
An HTML page.
public static Byte[] ToJpeg(RgbaImage image, RasterImageOptions? options = null) #Byte[]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
A JPEG image.
public static Byte[] ToPng(Chart chart) #Byte[]Renders a chart to PNG bytes.
Parameters
- chart ChartForgeX.Core.Chart
- The chart to render.
Returns
A PNG image.
public static Byte[] ToPng(ChartGrid grid) #Byte[]Renders a chart grid to PNG bytes.
Parameters
- grid ChartForgeX.Core.ChartGrid
- The chart grid to render.
Returns
A PNG image.
public static Byte[] ToPng(IVisualBlock block) #Byte[]Renders a visual block to PNG bytes.
Parameters
- block ChartForgeX.VisualBlocks.IVisualBlock
- The visual block to render.
Returns
A PNG image.
public static Byte[] ToPng(RgbaImage image) #Byte[]Encodes RGBA pixels to PNG bytes.
Parameters
- image ChartForgeX.Raster.RgbaImage
- The image to encode.
Returns
A PNG image.
public static Byte[] ToPng(RgbaImage image, RasterImageOptions? options) #Byte[]Encodes an RGBA image as PNG bytes using dependency-free raster options.
Parameters
- image ChartForgeX.Raster.RgbaImage
- options ChartForgeX.Core.RasterImageOptions?
public static Byte[] ToPpm(Chart chart, RasterImageOptions? options = null) #Byte[]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
A PPM image.
public static Byte[] ToPpm(ChartGrid grid, RasterImageOptions? options = null) #Byte[]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
A PPM image.
public static Byte[] ToPpm(IVisualBlock block, RasterImageOptions? options = null) #Byte[]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
A PPM image.
public static Byte[] ToRasterImage(Chart chart, RasterImageFormat format, RasterImageOptions? options = null) #Byte[]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
Encoded raster image bytes.
public static Byte[] ToRasterImage(ChartGrid grid, RasterImageFormat format, RasterImageOptions? options = null) #Byte[]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
Encoded raster image bytes.
public static Byte[] ToRasterImage(IVisualBlock block, RasterImageFormat format, RasterImageOptions? options = null) #Byte[]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
Encoded raster image bytes.
public static Byte[] ToRasterImage(RgbaImage image, RasterImageFormat format, RasterImageOptions? options = null) #Byte[]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
Encoded raster image bytes.
public static RgbaImage ToRgbaImage(Chart chart) #RgbaImageRenders a chart directly to an in-memory RGBA image without encoding it.
Parameters
- chart ChartForgeX.Core.Chart
- The chart to render.
Returns
The rendered RGBA image.
public static RgbaImage ToRgbaImage(ChartGrid grid) #RgbaImageRenders a chart grid directly to an in-memory RGBA image without encoding it.
Parameters
- grid ChartForgeX.Core.ChartGrid
- The chart grid to render.
Returns
The rendered RGBA image.
public static RgbaImage ToRgbaImage(IVisualBlock block) #RgbaImageRenders a visual block directly to an in-memory RGBA image without encoding it.
Parameters
- block ChartForgeX.VisualBlocks.IVisualBlock
- The visual block to render.
Returns
The rendered RGBA image.
public static String ToSvg(Chart chart) #StringRenders a chart to SVG markup.
Parameters
- chart ChartForgeX.Core.Chart
- The chart to render.
Returns
SVG markup.
public static String ToSvg(Chart chart, String idScope) #StringRenders a chart to SVG markup with an additional deterministic ID scope.
Parameters
- chart ChartForgeX.Core.Chart
- The chart to render.
- idScope System.String
- A caller-provided scope used to keep SVG element IDs unique when embedding multiple SVGs in one document.
Returns
SVG markup.
public static String ToSvg(ChartGrid grid) #StringRenders a chart grid to SVG markup.
Parameters
- grid ChartForgeX.Core.ChartGrid
- The chart grid to render.
Returns
SVG markup.
public static String ToSvg(ChartGrid grid, String idScope) #StringRenders a chart grid to SVG markup with an additional deterministic ID scope.
Parameters
- grid ChartForgeX.Core.ChartGrid
- The chart grid to render.
- idScope System.String
- A caller-provided scope used to keep SVG element IDs unique when embedding multiple SVG grids in one document.
Returns
SVG markup.
public static String ToSvg(IVisualBlock block) #StringRenders a visual block to SVG markup.
Parameters
- block ChartForgeX.VisualBlocks.IVisualBlock
- The visual block to render.
Returns
SVG markup.
public static String ToSvg(IVisualBlock block, String idScope) #StringRenders a visual block to SVG markup with an additional deterministic ID scope.
Parameters
- block ChartForgeX.VisualBlocks.IVisualBlock
- The visual block to render.
- idScope System.String
- A caller-provided scope used to keep SVG element IDs unique when embedding multiple SVGs in one document.
Returns
SVG markup.
public static Byte[] ToTiff(Chart chart, RasterImageOptions? options = null) #Byte[]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
A TIFF image.
public static Byte[] ToTiff(ChartGrid grid, RasterImageOptions? options = null) #Byte[]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
A TIFF image.
public static Byte[] ToTiff(IVisualBlock block, RasterImageOptions? options = null) #Byte[]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
A TIFF image.
public static Chart WithBrandKit(Chart chart, ChartBrandKit brandKit) #ChartApplies a reusable brand kit to the current chart theme.
Parameters
- chart ChartForgeX.Core.Chart
- The chart to configure.
- brandKit ChartForgeX.Themes.ChartBrandKit
- The brand kit to apply.
Returns
The current chart.
public static ChartGrid WithBrandKit(ChartGrid grid, ChartBrandKit brandKit) #ChartGridApplies a reusable brand kit to the current chart grid theme, creating a light grid theme when the grid is currently automatic.
Parameters
- grid ChartForgeX.Core.ChartGrid
- The chart grid to configure.
- brandKit ChartForgeX.Themes.ChartBrandKit
- The brand kit to apply.
Returns
The current chart grid.
public static TBlock WithBrandKit<TBlock>(TBlock block, ChartBrandKit brandKit) #TBlockApplies a reusable brand kit to the current visual block theme.
Type Parameters
- TBlock
- The visual block type.
Parameters
- block TBlock
- The visual block to configure.
- brandKit ChartForgeX.Themes.ChartBrandKit
- The brand kit to apply.
Returns
The current visual block.
public static Chart WithPalette(Chart chart, params ChartColor[] colors) #ChartSets 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.
Returns
The current chart.
public static Chart WithPalette(Chart chart, params String[] colors) #ChartSets the default series palette on the current chart theme from hexadecimal color strings.
Parameters
- chart ChartForgeX.Core.Chart
- The chart to configure.
- colors System.String[]
- The color strings in #RGB, #RGBA, #RRGGBB, or #RRGGBBAA notation.
Returns
The current chart.
public static TBlock WithPalette<TBlock>(TBlock block, params ChartColor[] colors) #TBlockSets 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
The current visual block.
public static TBlock WithPalette<TBlock>(TBlock block, params String[] colors) #TBlockSets the default palette on the current visual block theme from hexadecimal color strings.
Type Parameters
- TBlock
- The visual block type.
Parameters
- block TBlock
- The visual block to configure.
- colors System.String[]
- The color strings in #RGB, #RGBA, #RRGGBB, or #RRGGBBAA notation.
Returns
The current visual block.
public static TBlock WithPngOutputScale<TBlock>(TBlock block, ChartPngOutputScale scale) #TBlockSets the output pixel multiplier used by visual block PNG exports using a named density preset.
Type Parameters
- TBlock
- The visual block type.
Parameters
- block TBlock
- The visual block to configure.
- scale ChartForgeX.Core.ChartPngOutputScale
- The output density preset.
Returns
The current visual block.
public static Void WriteBmp(Chart chart, Stream stream, RasterImageOptions? options = null) #VoidWrites 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) #VoidWrites 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) #VoidWrites 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) #VoidWrites 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) #VoidWrites 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) #VoidWrites 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) #VoidWrites 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) #VoidWrites 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) #VoidWrites 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) #VoidWrites 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) #VoidWrites 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) #VoidWrites 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) #VoidWrites 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.
Inherited Methods
public virtual Boolean Equals(Object? obj) #BooleanParameters
- obj Object?