API Reference
PreparedVisual
A detached immutable scene. SVG and native raster export consume the same prepared decisions.
Inheritance
- Object
- PreparedVisual
Usage
Explore 14 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 10
- Method Chart.Prepare
- Method ChartGrid.Prepare
- Method Sparkline.Prepare
- Method IVisualRenderable.Prepare
- Method PreparedVisualStory.PrepareFrame
- Method TopologyChart.Prepare
- Method TopologyMotionPresentation.Sample
- Property TopologyMotionPresentation.StaticVisual
- Method FlowArtifact.Prepare
- Method SequenceArtifact.Prepare
Accepted by parameters 4
- Method VisualMotionPresentation.Create
- Extension method PreparedVisual.ToArtifact
- Constructor VisualStoryMediaSurface.VisualStoryMediaSurface
- Method VisualArtifactRendering.ToArtifact
Methods
public Byte[] ToPng(VisualRenderOptions? options = null) #Byte[]Exports PNG from the native raster backend.
Parameters
- options ChartForgeX.Rendering.VisualRenderOptions? = null
public RgbaImage ToRgba(VisualRenderOptions? options = null) #RgbaImageExports native RGBA pixels without repeating layout or parsing SVG.
Parameters
- options ChartForgeX.Rendering.VisualRenderOptions? = null
public String ToSvg(String idPrefix) #StringExports SVG with a host-owned ID namespace, allowing identical prepared visuals in one document.
Parameters
- idPrefix System.String
- A unique host prefix beginning with an ASCII letter and containing only letters, digits, hyphens, underscores and periods.
public String ToSvg(VisualSvgOptions options) #StringExports SVG using detached host namespace, color and safe link policies.
Parameters
- options ChartForgeX.Rendering.VisualSvgOptions
Inherited Methods
public virtual Boolean Equals(Object? obj) #BooleanParameters
- obj Object?
Properties
public VisualSize Size { get; } #Gets the logical viewport.
public IReadOnlyList<VisualDiagnostic> Diagnostics { get; } #Gets preparation diagnostics.
public IReadOnlyList<VisualSemanticRegion> Regions { get; } #Gets descriptive source regions.
public VisualAccessibility Accessibility { get; } #Gets an independent copy of the text alternative.
Extension Methods
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.