API Reference
VisualArtifactRendering
Provides static rendering helpers for product-neutral visual artifact envelopes.
Inheritance
- Object
- VisualArtifactRendering
Methods
public static Void SaveHtml(VisualArtifact artifact, String path) #VoidSaves a supported visual artifact model to a standalone HTML page.
Parameters
- artifact ChartForgeX.VisualArtifacts.VisualArtifact
- The artifact envelope.
- path System.String
- The target HTML path.
public static Void SaveHtml(VisualArtifact artifact, String path, VisualArtifactRenderOptions? options) #VoidSaves a supported visual artifact model to standalone HTML with artifact-wide options.
Parameters
- artifact ChartForgeX.VisualArtifacts.VisualArtifact
- path System.String
- options ChartForgeX.VisualArtifacts.VisualArtifactRenderOptions?
public static Void SavePng(VisualArtifact artifact, String path) #VoidSaves a supported visual artifact model to PNG.
Parameters
- artifact ChartForgeX.VisualArtifacts.VisualArtifact
- The artifact envelope.
- path System.String
- The target PNG path.
public static Void SavePng(VisualArtifact artifact, String path, VisualArtifactRenderOptions? options) #VoidSaves a supported visual artifact model to PNG with artifact-wide options.
Parameters
- artifact ChartForgeX.VisualArtifacts.VisualArtifact
- path System.String
- options ChartForgeX.VisualArtifacts.VisualArtifactRenderOptions?
public static Void SaveSvg(VisualArtifact artifact, String path) #VoidSaves a supported visual artifact model to SVG.
Parameters
- artifact ChartForgeX.VisualArtifacts.VisualArtifact
- The artifact envelope.
- path System.String
- The target SVG path.
public static Void SaveSvg(VisualArtifact artifact, String path, VisualArtifactRenderOptions? options) #VoidSaves a supported visual artifact model to SVG with artifact-wide options.
Parameters
- artifact ChartForgeX.VisualArtifacts.VisualArtifact
- path System.String
- options ChartForgeX.VisualArtifacts.VisualArtifactRenderOptions?
public static VisualArtifact ToArtifact(PreparedVisual prepared, String? id = null) #VisualArtifactWraps a prepared visual using its captured semantic identity and family when available.
Parameters
- prepared ChartForgeX.Rendering.PreparedVisual
- The detached static output.
- id System.String? = null
- 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) #VisualArtifactWraps an immutable prepared visual for static export and portable host handoff.
Parameters
- prepared ChartForgeX.Rendering.PreparedVisual
- The detached static output.
- id System.String
- The stable artifact ID; it must match a supplied semantic envelope.
- kind ChartForgeX.VisualArtifacts.VisualArtifactKind
- The declared artifact kind; it must match a supplied semantic envelope.
- semanticInterchange ChartForgeX.VisualArtifacts.VisualArtifactInterchangeEnvelope? = null
- Optional source-model semantics, captured independently of the display scene.
- title System.String? = null
- Optional artifact title; defaults to the semantic title or prepared accessible name.
- subtitle System.String? = null
- Optional artifact subtitle; defaults to the semantic subtitle.
Returns
A mutable host envelope whose render model and captured semantic data are detached snapshots.
public static String ToHtmlPage(VisualArtifact artifact) #StringRenders a supported visual artifact model to a standalone HTML page.
Parameters
- artifact ChartForgeX.VisualArtifacts.VisualArtifact
- The artifact envelope.
Returns
HTML markup.
public static String ToHtmlPage(VisualArtifact artifact, VisualArtifactRenderOptions? options) #StringRenders a supported visual artifact model to a standalone HTML page with artifact-wide options.
Parameters
- artifact ChartForgeX.VisualArtifacts.VisualArtifact
- options ChartForgeX.VisualArtifacts.VisualArtifactRenderOptions?
public static Byte[] ToPng(VisualArtifact artifact) #Byte[]Renders a supported visual artifact model to PNG.
Parameters
- artifact ChartForgeX.VisualArtifacts.VisualArtifact
- The artifact envelope.
Returns
PNG bytes.
public static Byte[] ToPng(VisualArtifact artifact, VisualArtifactRenderOptions? options) #Byte[]Renders a supported visual artifact model to PNG with artifact-wide options.
Parameters
- artifact ChartForgeX.VisualArtifacts.VisualArtifact
- options ChartForgeX.VisualArtifacts.VisualArtifactRenderOptions?
public static RgbaImage ToRgbaImage(VisualArtifact artifact, VisualArtifactRenderOptions? options = null) #RgbaImageRenders an artifact directly to native pixels, before format encoding.
Parameters
- artifact ChartForgeX.VisualArtifacts.VisualArtifact
- The source semantics and optional static presentation.
- options ChartForgeX.VisualArtifacts.VisualArtifactRenderOptions? = null
- Optional core rendering options. Raster encoding options apply when encoding the result.
Returns
A detached RGBA image at the producer's configured output density.
public static String ToSvg(VisualArtifact artifact) #StringRenders a supported visual artifact model to SVG.
Parameters
- artifact ChartForgeX.VisualArtifacts.VisualArtifact
- The artifact envelope.
Returns
SVG markup.
public static String ToSvg(VisualArtifact artifact, VisualArtifactRenderOptions? options) #StringRenders a supported visual artifact model to SVG with artifact-wide options.
Parameters
- artifact ChartForgeX.VisualArtifacts.VisualArtifact
- options ChartForgeX.VisualArtifacts.VisualArtifactRenderOptions?
public static String ToSvg(VisualArtifact artifact, VisualArtifactRenderOptions? options, String idScope) #StringRenders SVG with a caller-owned namespace for embedding several artifacts in one document.
Parameters
- artifact ChartForgeX.VisualArtifacts.VisualArtifact
- options ChartForgeX.VisualArtifacts.VisualArtifactRenderOptions?
- idScope System.String
Inherited Methods
public virtual Boolean Equals(Object? obj) #BooleanParameters
- obj Object?