Project

ChartForgeX

Render deterministic charts, dashboards, topology, hierarchy, and report visuals directly from .NET.

Stars 45
Forks 2
NuGet downloads 48,107
Release ChartForgeX-v1.7.0
Language: HTML Updated: 2026-09-02

API Reference

Class

ImageComposition

Namespace ChartForgeX.Composition

Dependency-free RGBA image composition surface for wallpapers, previews, reports, and reusable renderer hosts.

Inheritance

  • Object
  • ImageComposition

Usage

This type appears in these public API surfaces even when no hand-authored example is attached directly to the page.

Accepted by parameters

Methods

Clear(ChartForgeX.Primitives.ChartColor arg1) #

Fills the whole composition with a color.

Parameters

arg1 ChartForgeX.Primitives.ChartColor required
Create(System.Int32 arg1, System.Int32 arg2, ChartForgeX.Primitives.ChartColor arg3) #

Creates a new composition with the requested background.

Parameters

arg1 System.Int32 required
arg2 System.Int32 required
arg3 ChartForgeX.Primitives.ChartColor required
CreateTransparent(System.Int32 arg1, System.Int32 arg2) #

Creates a transparent composition.

Parameters

arg1 System.Int32 required
arg2 System.Int32 required
DrawCallout(System.Double arg1, System.Double arg2, System.Double arg3, System.Double arg4, System.Double arg5, System.Double arg6, System.String arg7, System.Double arg8, ChartForgeX.Primitives.ChartColor arg9, ChartForgeX.Primitives.ChartColor arg10, ChartForgeX.Primitives.ChartColor arg11, System.Double arg12, System.Double arg13, System.Double arg14) #

Draws a leader line and rounded text box callout for reusable image annotations.

Parameters

arg1 System.Double required
arg2 System.Double required
arg3 System.Double required
arg4 System.Double required
arg5 System.Double required
arg6 System.Double required
arg7 System.String required
arg8 System.Double required
arg9 ChartForgeX.Primitives.ChartColor required
arg10 ChartForgeX.Primitives.ChartColor required
arg11 ChartForgeX.Primitives.ChartColor required
arg12 System.Double required
arg13 System.Double required
arg14 System.Double required
DrawChart 2 overloads
DrawChart(ChartForgeX.Core.Chart arg1, System.Double arg2, System.Double arg3, System.Double arg4, System.Double arg5, ChartForgeX.Composition.VisualCanvasImageFit arg6, System.Double arg7) #

Draws a chart layer.

Parameters

arg1 ChartForgeX.Core.Chart required
arg2 System.Double required
arg3 System.Double required
arg4 System.Double required
arg5 System.Double required
arg6 ChartForgeX.Composition.VisualCanvasImageFit required
arg7 System.Double required
DrawChart(ChartForgeX.Core.Chart arg1, ChartForgeX.Composition.VisualCanvasPlacement arg2, System.Double arg3, System.Double arg4, ChartForgeX.Composition.VisualCanvasImageFit arg5, System.Double arg6) #

Draws a chart layer using anchor-based placement.

Parameters

arg1 ChartForgeX.Core.Chart required
arg2 ChartForgeX.Composition.VisualCanvasPlacement required
arg3 System.Double required
arg4 System.Double required
arg5 ChartForgeX.Composition.VisualCanvasImageFit required
arg6 System.Double required
DrawChartGrid 2 overloads
DrawChartGrid(ChartForgeX.Core.ChartGrid arg1, System.Double arg2, System.Double arg3, System.Double arg4, System.Double arg5, ChartForgeX.Composition.VisualCanvasImageFit arg6, System.Double arg7) #

Draws a chart grid layer.

Parameters

arg1 ChartForgeX.Core.ChartGrid required
arg2 System.Double required
arg3 System.Double required
arg4 System.Double required
arg5 System.Double required
arg6 ChartForgeX.Composition.VisualCanvasImageFit required
arg7 System.Double required
DrawChartGrid(ChartForgeX.Core.ChartGrid arg1, ChartForgeX.Composition.VisualCanvasPlacement arg2, System.Double arg3, System.Double arg4, ChartForgeX.Composition.VisualCanvasImageFit arg5, System.Double arg6) #

Draws a chart grid layer using anchor-based placement.

Parameters

arg1 ChartForgeX.Core.ChartGrid required
arg2 ChartForgeX.Composition.VisualCanvasPlacement required
arg3 System.Double required
arg4 System.Double required
arg5 ChartForgeX.Composition.VisualCanvasImageFit required
arg6 System.Double required
DrawDashedLine(System.Double arg1, System.Double arg2, System.Double arg3, System.Double arg4, ChartForgeX.Primitives.ChartColor arg5, System.Double arg6, System.Double arg7, System.Double arg8) #

Draws a dashed line segment.

Parameters

arg1 System.Double required
arg2 System.Double required
arg3 System.Double required
arg4 System.Double required
arg5 ChartForgeX.Primitives.ChartColor required
arg6 System.Double required
arg7 System.Double required
arg8 System.Double required
DrawImage 2 overloads
DrawImage(ChartForgeX.Raster.RgbaImage arg1, System.Double arg2, System.Double arg3, System.Double arg4, System.Double arg5, ChartForgeX.Composition.VisualCanvasImageFit arg6, System.Double arg7) #

Draws an image into an explicit destination rectangle.

Parameters

arg1 ChartForgeX.Raster.RgbaImage required
arg2 System.Double required
arg3 System.Double required
arg4 System.Double required
arg5 System.Double required
arg6 ChartForgeX.Composition.VisualCanvasImageFit required
arg7 System.Double required
DrawImage(ChartForgeX.Raster.RgbaImage arg1, ChartForgeX.Composition.VisualCanvasPlacement arg2, System.Double arg3, System.Double arg4, ChartForgeX.Composition.VisualCanvasImageFit arg5, System.Double arg6) #

Draws an image using anchor-based placement.

Parameters

arg1 ChartForgeX.Raster.RgbaImage required
arg2 ChartForgeX.Composition.VisualCanvasPlacement required
arg3 System.Double required
arg4 System.Double required
arg5 ChartForgeX.Composition.VisualCanvasImageFit required
arg6 System.Double required
DrawImageBytes 2 overloads
DrawImageBytes(System.Byte[] arg1, System.Double arg2, System.Double arg3, System.Double arg4, System.Double arg5, ChartForgeX.Composition.VisualCanvasImageFit arg6, System.Double arg7) #

Decodes and draws image bytes into an explicit destination rectangle.

Parameters

arg1 System.Byte[] required
arg2 System.Double required
arg3 System.Double required
arg4 System.Double required
arg5 System.Double required
arg6 ChartForgeX.Composition.VisualCanvasImageFit required
arg7 System.Double required
DrawImageBytes(System.Byte[] arg1, ChartForgeX.Composition.VisualCanvasPlacement arg2, System.Double arg3, System.Double arg4, ChartForgeX.Composition.VisualCanvasImageFit arg5, System.Double arg6) #

Decodes and draws image bytes using anchor-based placement.

Parameters

arg1 System.Byte[] required
arg2 ChartForgeX.Composition.VisualCanvasPlacement required
arg3 System.Double required
arg4 System.Double required
arg5 ChartForgeX.Composition.VisualCanvasImageFit required
arg6 System.Double required
DrawImageFile 2 overloads
DrawImageFile(System.String arg1, System.Double arg2, System.Double arg3, System.Double arg4, System.Double arg5, ChartForgeX.Composition.VisualCanvasImageFit arg6, System.Double arg7) #

Decodes and draws an image file into an explicit destination rectangle.

Parameters

arg1 System.String required
arg2 System.Double required
arg3 System.Double required
arg4 System.Double required
arg5 System.Double required
arg6 ChartForgeX.Composition.VisualCanvasImageFit required
arg7 System.Double required
DrawImageFile(System.String arg1, ChartForgeX.Composition.VisualCanvasPlacement arg2, System.Double arg3, System.Double arg4, ChartForgeX.Composition.VisualCanvasImageFit arg5, System.Double arg6) #

Decodes and draws an image file using anchor-based placement.

Parameters

arg1 System.String required
arg2 ChartForgeX.Composition.VisualCanvasPlacement required
arg3 System.Double required
arg4 System.Double required
arg5 ChartForgeX.Composition.VisualCanvasImageFit required
arg6 System.Double required
DrawLine(System.Double arg1, System.Double arg2, System.Double arg3, System.Double arg4, ChartForgeX.Primitives.ChartColor arg5, System.Double arg6) #

Draws a line segment.

Parameters

arg1 System.Double required
arg2 System.Double required
arg3 System.Double required
arg4 System.Double required
arg5 ChartForgeX.Primitives.ChartColor required
arg6 System.Double required
DrawText 2 overloads
DrawText(System.Double arg1, System.Double arg2, System.Double arg3, System.String arg4, System.Double arg5, ChartForgeX.Primitives.ChartColor arg6, ChartForgeX.Typography.TextAlignment arg7, System.Boolean arg8) #

Draws text inside a fixed-width region.

Parameters

arg1 System.Double required
arg2 System.Double required
arg3 System.Double required
arg4 System.String required
arg5 System.Double required
arg6 ChartForgeX.Primitives.ChartColor required
arg7 ChartForgeX.Typography.TextAlignment required
arg8 System.Boolean required
DrawText(System.Double arg1, System.Double arg2, System.Double arg3, System.String arg4, ChartForgeX.Typography.TextStyle arg5, ChartForgeX.Typography.TextWrapMode arg6, System.Nullable{System.Int32} arg7, ChartForgeX.Typography.TextTrimming arg8) #

Draws measured and optionally wrapped text with the shared dependency-free typography engine.

Parameters

arg1 System.Double required
arg2 System.Double required
arg3 System.Double required
arg4 System.String required
arg5 ChartForgeX.Typography.TextStyle required
arg6 ChartForgeX.Typography.TextWrapMode required
arg7 System.Nullable{System.Int32} required
arg8 ChartForgeX.Typography.TextTrimming required
DrawTopology 2 overloads
DrawTopology(ChartForgeX.Topology.TopologyChart arg1, System.Double arg2, System.Double arg3, System.Double arg4, System.Double arg5, ChartForgeX.Topology.TopologyRenderOptions arg6, ChartForgeX.Composition.VisualCanvasImageFit arg7, System.Double arg8) #

Draws a topology chart layer.

Parameters

arg1 ChartForgeX.Topology.TopologyChart required
arg2 System.Double required
arg3 System.Double required
arg4 System.Double required
arg5 System.Double required
arg6 ChartForgeX.Topology.TopologyRenderOptions required
arg7 ChartForgeX.Composition.VisualCanvasImageFit required
arg8 System.Double required
DrawTopology(ChartForgeX.Topology.TopologyChart arg1, ChartForgeX.Composition.VisualCanvasPlacement arg2, System.Double arg3, System.Double arg4, ChartForgeX.Topology.TopologyRenderOptions arg5, ChartForgeX.Composition.VisualCanvasImageFit arg6, System.Double arg7) #

Draws a topology chart layer using anchor-based placement.

Parameters

arg1 ChartForgeX.Topology.TopologyChart required
arg2 ChartForgeX.Composition.VisualCanvasPlacement required
arg3 System.Double required
arg4 System.Double required
arg5 ChartForgeX.Topology.TopologyRenderOptions required
arg6 ChartForgeX.Composition.VisualCanvasImageFit required
arg7 System.Double required
DrawVisualBlock 2 overloads
DrawVisualBlock(ChartForgeX.VisualBlocks.IVisualBlock arg1, System.Double arg2, System.Double arg3, System.Double arg4, System.Double arg5, ChartForgeX.Composition.VisualCanvasImageFit arg6, System.Double arg7) #

Draws a visual block layer.

Parameters

arg1 ChartForgeX.VisualBlocks.IVisualBlock required
arg2 System.Double required
arg3 System.Double required
arg4 System.Double required
arg5 System.Double required
arg6 ChartForgeX.Composition.VisualCanvasImageFit required
arg7 System.Double required
DrawVisualBlock(ChartForgeX.VisualBlocks.IVisualBlock arg1, ChartForgeX.Composition.VisualCanvasPlacement arg2, System.Double arg3, System.Double arg4, ChartForgeX.Composition.VisualCanvasImageFit arg5, System.Double arg6) #

Draws a visual block layer using anchor-based placement.

Parameters

arg1 ChartForgeX.VisualBlocks.IVisualBlock required
arg2 ChartForgeX.Composition.VisualCanvasPlacement required
arg3 System.Double required
arg4 System.Double required
arg5 ChartForgeX.Composition.VisualCanvasImageFit required
arg6 System.Double required
DrawVisualCanvas 2 overloads
DrawVisualCanvas(ChartForgeX.Composition.VisualCanvas arg1, System.Double arg2, System.Double arg3, System.Double arg4, System.Double arg5, ChartForgeX.Composition.VisualCanvasImageFit arg6, System.Double arg7) #

Draws a visual canvas layer.

Parameters

arg1 ChartForgeX.Composition.VisualCanvas required
arg2 System.Double required
arg3 System.Double required
arg4 System.Double required
arg5 System.Double required
arg6 ChartForgeX.Composition.VisualCanvasImageFit required
arg7 System.Double required
DrawVisualCanvas(ChartForgeX.Composition.VisualCanvas arg1, ChartForgeX.Composition.VisualCanvasPlacement arg2, System.Double arg3, System.Double arg4, ChartForgeX.Composition.VisualCanvasImageFit arg5, System.Double arg6) #

Draws a visual canvas layer using anchor-based placement.

Parameters

arg1 ChartForgeX.Composition.VisualCanvas required
arg2 ChartForgeX.Composition.VisualCanvasPlacement required
arg3 System.Double required
arg4 System.Double required
arg5 ChartForgeX.Composition.VisualCanvasImageFit required
arg6 System.Double required
DrawVisualGrid 2 overloads
DrawVisualGrid(ChartForgeX.VisualBlocks.VisualGrid arg1, System.Double arg2, System.Double arg3, System.Double arg4, System.Double arg5, ChartForgeX.Composition.VisualCanvasImageFit arg6, System.Double arg7) #

Draws a visual grid layer.

Parameters

arg1 ChartForgeX.VisualBlocks.VisualGrid required
arg2 System.Double required
arg3 System.Double required
arg4 System.Double required
arg5 System.Double required
arg6 ChartForgeX.Composition.VisualCanvasImageFit required
arg7 System.Double required
DrawVisualGrid(ChartForgeX.VisualBlocks.VisualGrid arg1, ChartForgeX.Composition.VisualCanvasPlacement arg2, System.Double arg3, System.Double arg4, ChartForgeX.Composition.VisualCanvasImageFit arg5, System.Double arg6) #

Draws a visual grid layer using anchor-based placement.

Parameters

arg1 ChartForgeX.VisualBlocks.VisualGrid required
arg2 ChartForgeX.Composition.VisualCanvasPlacement required
arg3 System.Double required
arg4 System.Double required
arg5 ChartForgeX.Composition.VisualCanvasImageFit required
arg6 System.Double required
FillRectangle(System.Double arg1, System.Double arg2, System.Double arg3, System.Double arg4, ChartForgeX.Primitives.ChartColor arg5) #

Draws a filled rectangle.

Parameters

arg1 System.Double required
arg2 System.Double required
arg3 System.Double required
arg4 System.Double required
arg5 ChartForgeX.Primitives.ChartColor required
FillRoundedRectangle(System.Double arg1, System.Double arg2, System.Double arg3, System.Double arg4, System.Double arg5, ChartForgeX.Primitives.ChartColor arg6) #

Draws a filled rounded rectangle.

Parameters

arg1 System.Double required
arg2 System.Double required
arg3 System.Double required
arg4 System.Double required
arg5 System.Double required
arg6 ChartForgeX.Primitives.ChartColor required
FromBytes(System.Byte[] arg1) #

Loads image bytes and creates a composition with the decoded pixels.

Parameters

arg1 System.Byte[] required
FromFile(System.String arg1) #

Loads an image file and creates a composition with the decoded pixels.

Parameters

arg1 System.String required
FromImage(ChartForgeX.Raster.RgbaImage arg1) #

Creates a composition initialized with decoded image pixels.

Parameters

arg1 ChartForgeX.Raster.RgbaImage required
Save 2 overloads
Save(System.String arg1, ChartForgeX.Core.RasterImageFormat arg2, ChartForgeX.Core.RasterImageOptions arg3) #

Saves the composition to a raster file using an explicit format.

Parameters

arg1 System.String required
arg2 ChartForgeX.Core.RasterImageFormat required
arg3 ChartForgeX.Core.RasterImageOptions required
Save(System.String arg1, ChartForgeX.Core.RasterImageOptions arg2) #

Saves the composition to a raster file using the output extension to choose the format.

Parameters

arg1 System.String required
arg2 ChartForgeX.Core.RasterImageOptions required
StrokeRectangle(System.Double arg1, System.Double arg2, System.Double arg3, System.Double arg4, ChartForgeX.Primitives.ChartColor arg5, System.Double arg6) #

Draws a rectangle outline.

Parameters

arg1 System.Double required
arg2 System.Double required
arg3 System.Double required
arg4 System.Double required
arg5 ChartForgeX.Primitives.ChartColor required
arg6 System.Double required
StrokeRoundedRectangle(System.Double arg1, System.Double arg2, System.Double arg3, System.Double arg4, System.Double arg5, ChartForgeX.Primitives.ChartColor arg6, System.Double arg7) #

Draws a rounded rectangle outline.

Parameters

arg1 System.Double required
arg2 System.Double required
arg3 System.Double required
arg4 System.Double required
arg5 System.Double required
arg6 ChartForgeX.Primitives.ChartColor required
arg7 System.Double required
ToGif() #

Encodes the composition to GIF bytes.

ToImage() #

Returns a copy of the current pixels.

ToJpeg(ChartForgeX.Core.RasterImageOptions arg1) #

Encodes the composition to JPEG bytes.

Parameters

arg1 ChartForgeX.Core.RasterImageOptions required
ToPng 2 overloads
ToPng() #

Encodes the composition to PNG bytes.

ToPng(ChartForgeX.Core.RasterImageOptions arg1) #

Encodes the composition to PNG bytes using dependency-free raster options.

Parameters

arg1 ChartForgeX.Core.RasterImageOptions required
ToRasterImage(ChartForgeX.Core.RasterImageFormat arg1, ChartForgeX.Core.RasterImageOptions arg2) #

Encodes the composition to a dependency-free raster format.

Parameters

arg1 ChartForgeX.Core.RasterImageFormat required
arg2 ChartForgeX.Core.RasterImageOptions required
TryFromBytes(System.Byte[] arg1, ChartForgeX.Composition.ImageComposition@ arg2) #

Attempts to load image bytes and create a composition with the decoded pixels.

Parameters

arg1 System.Byte[] required
arg2 ChartForgeX.Composition.ImageComposition@ required
TryFromFile(System.String arg1, ChartForgeX.Composition.ImageComposition@ arg2) #

Attempts to load an image file and create a composition with the decoded pixels.

Parameters

arg1 System.String required
arg2 ChartForgeX.Composition.ImageComposition@ required
Write(System.IO.Stream arg1, ChartForgeX.Core.RasterImageFormat arg2, ChartForgeX.Core.RasterImageOptions arg3) #

Writes the composition to a raster stream.

Parameters

arg1 System.IO.Stream required
arg2 ChartForgeX.Core.RasterImageFormat required
arg3 ChartForgeX.Core.RasterImageOptions required

Properties

Width #

Gets the composition width in pixels.

Height #

Gets the composition height in pixels.