VisualArtifactRendering
ChartForgeX.VisualArtifacts
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
- options ChartForgeX.VisualArtifacts.VisualArtifactRenderOptions? = null
Returns
VisualSizepublic static void SaveHtml(VisualArtifact artifact, string path) #Saves a supported visual artifact model to a standalone HTML page.
Parameters
- artifact ChartForgeX.VisualArtifacts.VisualArtifact
- The artifact envelope.
- path string
- 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
- path string
- options ChartForgeX.VisualArtifacts.VisualArtifactRenderOptions?
public static void SavePng(VisualArtifact artifact, string path) #Saves a supported visual artifact model to PNG.
Parameters
- artifact ChartForgeX.VisualArtifacts.VisualArtifact
- The artifact envelope.
- path string
- 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
- path string
- options ChartForgeX.VisualArtifacts.VisualArtifactRenderOptions?
public static void SaveSvg(VisualArtifact artifact, string path) #Saves a supported visual artifact model to SVG.
Parameters
- artifact ChartForgeX.VisualArtifacts.VisualArtifact
- The artifact envelope.
- path string
- 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
- path string
- options ChartForgeX.VisualArtifacts.VisualArtifactRenderOptions?
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
- The immutable completed native capture.
- id string? = null
- Optional stable source artifact identity.
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
- The detached static output.
- id string? = null
- Optional host ID; defaults to the captured ID or "prepared-visual" for a scene without semantics.
Returns
VisualArtifactpublic 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
- The detached static output.
- id 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 string? = null
- Optional artifact title; defaults to the semantic title or prepared accessible name.
- subtitle string? = null
- Optional artifact subtitle; defaults to the semantic subtitle.
Returns
VisualArtifact A mutable host envelope whose render model and captured semantic data are detached snapshots.public static string ToHtmlPage(VisualArtifact artifact) #Renders a supported visual artifact model to a standalone HTML page.
Parameters
- artifact ChartForgeX.VisualArtifacts.VisualArtifact
- 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
- options ChartForgeX.VisualArtifacts.VisualArtifactRenderOptions?
Returns
stringpublic static byte[] ToPng(VisualArtifact artifact) #Renders a supported visual artifact model to PNG.
Parameters
- artifact ChartForgeX.VisualArtifacts.VisualArtifact
- 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
- options ChartForgeX.VisualArtifacts.VisualArtifactRenderOptions?
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
- The source semantics and optional static presentation.
- options ChartForgeX.VisualArtifacts.VisualArtifactRenderOptions? = null
- Optional core rendering options. Raster encoding options apply when encoding the result.
public static string ToSvg(VisualArtifact artifact) #Renders a supported visual artifact model to SVG.
Parameters
- artifact ChartForgeX.VisualArtifacts.VisualArtifact
- 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
- options ChartForgeX.VisualArtifacts.VisualArtifactRenderOptions?
Returns
stringpublic 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
- options ChartForgeX.VisualArtifacts.VisualArtifactRenderOptions?
- idScope string
Returns
string