PreparedVisualStory
ChartForgeX.Stories
A detached story observation with one clock for seeking, playback and export.
Inheritance
- object
- PreparedVisualStory
Remarks
Rendering clamps to one play. Repetition is an export or player policy; the endpoint remains the completed scene.
Usage
Explore 1 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 1
- Method VisualStory.Prepare
Methods
public IEnumerable<RasterAnimationFrame> Frames(VisualStoryFrameOptions? options = null, CancellationToken cancellationToken = default) #Produces owning frames lazily, using rational cadence and exact tick durations.
Parameters
- options ChartForgeX.Stories.VisualStoryFrameOptions? = null
- cancellationToken System.Threading.CancellationToken = default
Returns
IEnumerable<RasterAnimationFrame>public IEnumerable<RasterAnimationFrame> Frames(RasterAnimationFormat format, VisualStoryFrameOptions? options = null, CancellationToken cancellationToken = default) #Produces owning frames with the selected container's timing and Stories readability policy.
Parameters
- format ChartForgeX.Raster.RasterAnimationFormat
- options ChartForgeX.Stories.VisualStoryFrameOptions? = null
- cancellationToken System.Threading.CancellationToken = default
Returns
IEnumerable<RasterAnimationFrame>public RasterAnimationSource FrameSource(RasterAnimationFormat format, VisualStoryFrameOptions? options = null) #Creates a repeatable producer with container-specific timing, including GIF visibility and viewer delay limits.
Parameters
- format ChartForgeX.Raster.RasterAnimationFormat
- options ChartForgeX.Stories.VisualStoryFrameOptions? = null
Returns
RasterAnimationSourcepublic RasterAnimationSource FrameSource(VisualStoryFrameOptions? options = null) #Creates a repeatable frame source on the exact tick clock, suitable for timestamp observations and optional video encoders.
Parameters
- options ChartForgeX.Stories.VisualStoryFrameOptions? = null
Returns
RasterAnimationSourcepublic PreparedVisual PrepareFrame(TimeSpan timestamp) #Prepares a timestamp as native geometry shared by SVG and PNG backends.
Parameters
- timestamp System.TimeSpan
Returns
PreparedVisualpublic RgbaImage RenderAt(TimeSpan timestamp, int outputScale = 1) #Renders an independently owned RGBA frame at a timestamp within one play.
Parameters
- timestamp System.TimeSpan
- outputScale int = 1
Returns
RgbaImagepublic string ToAnimatedSvg(VisualStoryFrameOptions? options = null, string idScope = "", CancellationToken cancellationToken = default) #Exports sampled native frames as a self-contained, script-free SVG animation using the prepared playback clock.
Parameters
- options ChartForgeX.Stories.VisualStoryFrameOptions? = null
- idScope string = ""
- cancellationToken System.Threading.CancellationToken = default
Returns
stringExceptions
InvalidOperationException– Sampling exceeds its frame budget, misses a readable chapter, or exceeds the document budget.
public byte[] ToApng(VisualStoryFrameOptions? options = null, CancellationToken cancellationToken = default) #Encodes APNG while producing and releasing one frame at a time.
Parameters
- options ChartForgeX.Stories.VisualStoryFrameOptions? = null
- cancellationToken System.Threading.CancellationToken = default
Returns
byte[]public byte[] ToGif(VisualStoryFrameOptions? options = null, CancellationToken cancellationToken = default) #Encodes GIF with a global palette and bounded two-pass frame production.
Parameters
- options ChartForgeX.Stories.VisualStoryFrameOptions? = null
- cancellationToken System.Threading.CancellationToken = default
Returns
byte[]public string ToHtmlPage(VisualStoryFrameOptions? options = null, CancellationToken cancellationToken = default) #Exports a script-free HTML page using the captured story and prepared playback clock.
Parameters
- options ChartForgeX.Stories.VisualStoryFrameOptions? = null
- cancellationToken System.Threading.CancellationToken = default
Returns
stringpublic byte[] ToPng(TimeSpan? timestamp = null, int outputScale = 1) #Renders a PNG at a timestamp; omission selects the completed poster.
Parameters
- timestamp System.TimeSpan? = null
- outputScale int = 1
Returns
byte[]public string ToSvg(TimeSpan? timestamp = null) #Exports a static vector frame at a timestamp; omission selects the completed poster.
Parameters
- timestamp System.TimeSpan? = null
Returns
stringpublic string ToTranscript() #Gets the captured accessible transcript, including complete source and terminal output.
Returns
stringpublic void WriteAnimation(Stream stream, RasterAnimationFormat format, VisualStoryFrameOptions? options = null, CancellationToken cancellationToken = default) #Writes an animation directly to a caller-owned stream without retaining the encoded file.
Parameters
- stream System.IO.Stream
- format ChartForgeX.Raster.RasterAnimationFormat
- options ChartForgeX.Stories.VisualStoryFrameOptions? = null
- cancellationToken System.Threading.CancellationToken = default
Inherited Methods
Properties
public TimeSpan ContentDuration { get; } #Gets the authored duration before the completed-state hold.
public TimeSpan Duration { get; } #Gets one complete play, including the completed-state hold.
public VisualStoryPlaybackOptions Playback { get; } #Gets immutable playback timing.
public IReadOnlyList<VisualStoryChapter> Chapters { get; } #Gets detached scene boundaries for seeking.