API Reference
IVisualBlock
Common contract for renderable non-chart visual blocks.
Usage
Explore 56 API references to this type
This type appears in these public API surfaces even when no hand-authored example is attached directly to the page.
Returned or exposed by 1
- Property VisualGridItem.Block
Accepted by parameters 55
- Method ChartExtensions.Save
- Method ChartExtensions.SaveBmp
- Method ChartExtensions.SaveHtml
- Method ChartExtensions.SavePng
- Method ChartExtensions.SavePpm
- Method ChartExtensions.SaveRasterImage
- Method ChartExtensions.SaveSvg
- Method ChartExtensions.SaveTiff
- Method ChartExtensions.ToBmp
- Method ChartExtensions.ToHtmlFragment
- Method ChartExtensions.ToHtmlPage
- Method ChartExtensions.ToPng
- Method ChartExtensions.ToPpm
- Method ChartExtensions.ToRasterImage
- Method ChartExtensions.ToRgbaImage
- Method ChartExtensions.ToSvg
- Method ChartExtensions.ToTiff
- Method ChartExtensions.WriteBmp
- Method ChartExtensions.WritePpm
- Method ChartExtensions.WriteRasterImage
- Method ChartExtensions.WriteTiff
- Method ImageComposition.DrawVisualBlock
- Extension method VisualCanvas.AddVisualBlock
- Method CompositeArtifactRendering.ToVisualArtifact
- Method HtmlVisualBlockRenderer.RenderFragment
- Method HtmlVisualBlockRenderer.RenderPage
- Extension method IVisualBlock.Save
- Extension method IVisualBlock.SaveBmp
- Extension method IVisualBlock.SaveHtml
- Extension method IVisualBlock.SavePng
- Extension method IVisualBlock.SavePpm
- Extension method IVisualBlock.SaveRasterImage
- Extension method IVisualBlock.SaveSvg
- Extension method IVisualBlock.SaveTiff
- Extension method IVisualBlock.ToBmp
- Extension method IVisualBlock.ToHtmlFragment
- Extension method IVisualBlock.ToHtmlPage
- Extension method IVisualBlock.ToPng
- Extension method IVisualBlock.ToPpm
- Extension method IVisualBlock.ToRasterImage
- Extension method IVisualBlock.ToRgbaImage
- Extension method IVisualBlock.ToSvg
- Extension method IVisualBlock.ToTiff
- Extension method IVisualBlock.ToVisualArtifact
- Extension method IVisualBlock.WriteBmp
- Extension method IVisualBlock.WritePpm
- Extension method IVisualBlock.WriteRasterImage
- Extension method IVisualBlock.WriteTiff
- Method PngFactBlockRenderer.Render
- Method PngVisualBlockRenderer.Render
- Method SvgFactBlockRenderer.Render
- Method SvgVisualBlockRenderer.Render
- Method VisualGrid.Add
- Method VisualGridItem.FromBlock
- Method VisualsExtensions.AddVisualBlock
Properties
Extension Methods
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(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(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(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(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(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 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(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(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(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(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[] 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[] 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(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 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(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(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 VisualArtifact ToVisualArtifact(IVisualBlock block, String? id = null, VisualArtifactSourceLanguage sourceLanguage = Native) #VisualArtifactWraps a non-chart visual block in a reusable visual artifact.
Parameters
- block ChartForgeX.VisualBlocks.IVisualBlock
- id System.String? = null
- sourceLanguage ChartForgeX.VisualArtifacts.VisualArtifactSourceLanguage = Native
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(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(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 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.