Skip to content
ChartForgeX
Class

VisualArtifactRendering

ChartForgeX.VisualArtifacts

Namespace
ChartForgeX.VisualArtifacts
Assembly
ChartForgeX
Modifiers
static

Provides static rendering helpers for product-neutral visual artifact envelopes.

Inheritance

  • object
  • VisualArtifactRendering

Methods

public static VisualSize MeasureRasterSize(VisualArtifact artifact, VisualArtifactRenderOptions? options = null) #

Measures the exact destination pixel dimensions of a core native artifact without allocating its raster canvas.

Parameters

artifact ChartForgeX.VisualArtifacts.VisualArtifact required
options ChartForgeX.VisualArtifacts.VisualArtifactRenderOptions? = null optional

Returns

VisualSize
SaveHtml 2 overloads
public static void SaveHtml(VisualArtifact artifact, string path) #

Saves a supported visual artifact model to a standalone HTML page.

Parameters

artifact ChartForgeX.VisualArtifacts.VisualArtifact required
The artifact envelope.
path string required
The target HTML path.
public static void SaveHtml(VisualArtifact artifact, string path, VisualArtifactRenderOptions? options) #

Saves a supported visual artifact model to standalone HTML with artifact-wide options.

Parameters

artifact ChartForgeX.VisualArtifacts.VisualArtifact required
path string required
options ChartForgeX.VisualArtifacts.VisualArtifactRenderOptions? required
SavePng 2 overloads
public static void SavePng(VisualArtifact artifact, string path) #

Saves a supported visual artifact model to PNG.

Parameters

artifact ChartForgeX.VisualArtifacts.VisualArtifact required
The artifact envelope.
path string required
The target PNG path.
public static void SavePng(VisualArtifact artifact, string path, VisualArtifactRenderOptions? options) #

Saves a supported visual artifact model to PNG with artifact-wide options.

Parameters

artifact ChartForgeX.VisualArtifacts.VisualArtifact required
path string required
options ChartForgeX.VisualArtifacts.VisualArtifactRenderOptions? required
SaveSvg 2 overloads
public static void SaveSvg(VisualArtifact artifact, string path) #

Saves a supported visual artifact model to SVG.

Parameters

artifact ChartForgeX.VisualArtifacts.VisualArtifact required
The artifact envelope.
path string required
The target SVG path.
public static void SaveSvg(VisualArtifact artifact, string path, VisualArtifactRenderOptions? options) #

Saves a supported visual artifact model to SVG with artifact-wide options.

Parameters

artifact ChartForgeX.VisualArtifacts.VisualArtifact required
path string required
options ChartForgeX.VisualArtifacts.VisualArtifactRenderOptions? required
ToArtifact 3 overloads
public static VisualArtifact ToArtifact(CapturedVisualLayer layer, string? id = null) #

Creates a static artifact with source facts and a distinct captured output frame.

Parameters

layer ChartForgeX.Rendering.CapturedVisualLayer required
The immutable completed native capture.
id string? = null optional
Optional stable source artifact identity.

Returns

VisualArtifact A native paint artifact with a lazy explicit portable boundary.
public static VisualArtifact ToArtifact(PreparedVisual prepared, string? id = null) #

Wraps a prepared visual using its captured semantic identity and family when available.

Parameters

prepared ChartForgeX.Rendering.PreparedVisual required
The detached static output.
id string? = null optional
Optional host ID; defaults to the captured ID or "prepared-visual" for a scene without semantics.
public static VisualArtifact ToArtifact(PreparedVisual prepared, string id, VisualArtifactKind kind, VisualArtifactInterchangeEnvelope? semanticInterchange = null, string? title = null, string? subtitle = null) #

Wraps an immutable prepared visual for static export and portable host handoff.

Parameters

prepared ChartForgeX.Rendering.PreparedVisual required
The detached static output.
id string required
The stable artifact ID; it must match a supplied semantic envelope.
kind ChartForgeX.VisualArtifacts.VisualArtifactKind required
The declared artifact kind; it must match a supplied semantic envelope.
semanticInterchange ChartForgeX.VisualArtifacts.VisualArtifactInterchangeEnvelope? = null optional
Optional source-model semantics, captured independently of the display scene.
title string? = null optional
Optional artifact title; defaults to the semantic title or prepared accessible name.
subtitle string? = null optional
Optional artifact subtitle; defaults to the semantic subtitle.

Returns

VisualArtifact A mutable host envelope whose render model and captured semantic data are detached snapshots.
ToHtmlPage 2 overloads
public static string ToHtmlPage(VisualArtifact artifact) #

Renders a supported visual artifact model to a standalone HTML page.

Parameters

artifact ChartForgeX.VisualArtifacts.VisualArtifact required
The artifact envelope.

Returns

string HTML markup.
public static string ToHtmlPage(VisualArtifact artifact, VisualArtifactRenderOptions? options) #

Renders a supported visual artifact model to a standalone HTML page with artifact-wide options.

Parameters

artifact ChartForgeX.VisualArtifacts.VisualArtifact required
options ChartForgeX.VisualArtifacts.VisualArtifactRenderOptions? required

Returns

string
ToPng 2 overloads
public static byte[] ToPng(VisualArtifact artifact) #

Renders a supported visual artifact model to PNG.

Parameters

artifact ChartForgeX.VisualArtifacts.VisualArtifact required
The artifact envelope.

Returns

byte[] PNG bytes.
public static byte[] ToPng(VisualArtifact artifact, VisualArtifactRenderOptions? options) #

Renders a supported visual artifact model to PNG with artifact-wide options.

Parameters

artifact ChartForgeX.VisualArtifacts.VisualArtifact required
options ChartForgeX.VisualArtifacts.VisualArtifactRenderOptions? required

Returns

byte[]
public static RgbaImage ToRgbaImage(VisualArtifact artifact, VisualArtifactRenderOptions? options = null) #

Renders an artifact directly to native pixels, before format encoding.

Parameters

artifact ChartForgeX.VisualArtifacts.VisualArtifact required
The source semantics and optional static presentation.
options ChartForgeX.VisualArtifacts.VisualArtifactRenderOptions? = null optional
Optional core rendering options. Raster encoding options apply when encoding the result.

Returns

RgbaImage A detached RGBA image at the producer's configured output density.
ToSvg 3 overloads
public static string ToSvg(VisualArtifact artifact) #

Renders a supported visual artifact model to SVG.

Parameters

artifact ChartForgeX.VisualArtifacts.VisualArtifact required
The artifact envelope.

Returns

string SVG markup.
public static string ToSvg(VisualArtifact artifact, VisualArtifactRenderOptions? options) #

Renders a supported visual artifact model to SVG with artifact-wide options.

Parameters

artifact ChartForgeX.VisualArtifacts.VisualArtifact required
options ChartForgeX.VisualArtifacts.VisualArtifactRenderOptions? required

Returns

string
public static string ToSvg(VisualArtifact artifact, VisualArtifactRenderOptions? options, string idScope) #

Renders SVG with a caller-owned namespace for embedding several artifacts in one document.

Parameters

artifact ChartForgeX.VisualArtifacts.VisualArtifact required
options ChartForgeX.VisualArtifacts.VisualArtifactRenderOptions? required
idScope string required

Returns

string