# SequenceArtifactRendering

Exports sequence models through the shared prepared scene and preserves source-only artifact handoff.

 Class  

`ChartForgeX.VisualArtifacts`

**Namespace**

`ChartForgeX.VisualArtifacts`

**Assembly**

`ChartForgeX`

**Source**

[SequenceArtifactRendering.cs:14](https://github.com/EvotecIT/ChartForgeX/blob/main/ChartForgeX/VisualArtifacts/SequenceArtifactRendering.cs#L14)

**Modifiers**

static

Exports sequence models through the shared prepared scene and preserves source-only artifact handoff.

## Inheritance

- object
- SequenceArtifactRendering

 Filter members   

    Show inherited   

 

## Methods

 `public static byte[] ToPng(SequenceArtifact sequence)` [#](#method-topng-chartforgex-visualartifacts-sequenceartifact) 

[SequenceArtifactRendering.cs:47](https://github.com/EvotecIT/ChartForgeX/blob/main/ChartForgeX/VisualArtifacts/SequenceArtifactRendering.cs#L47)

Renders the same native measured sequence scene directly to PNG.

Parameters

**sequence ChartForgeX.VisualArtifacts.SequenceArtifact required**

The source model; its width, height and padding supply the default request.

Returns

 `byte[]` PNG bytes using the shared raster defaults. 

 `public static string ToSvg(SequenceArtifact sequence)` [#](#method-tosvg-chartforgex-visualartifacts-sequenceartifact) 

[SequenceArtifactRendering.cs:42](https://github.com/EvotecIT/ChartForgeX/blob/main/ChartForgeX/VisualArtifacts/SequenceArtifactRendering.cs#L42)

Renders a sequence to shared SVG with measured content expansion beyond its authored minimum size.

Parameters

**sequence ChartForgeX.VisualArtifacts.SequenceArtifact required**

The source model; its width, height and padding supply the default request.

Returns

 `string` Script-free SVG from a native prepared scene. 

 `public static VisualArtifact ToVisualArtifact(SequenceArtifact sequence, VisualArtifactSourceLanguage sourceLanguage = Native)` [#](#method-tovisualartifact-chartforgex-visualartifacts-sequenceartifact-chartforgex-visualartifacts-visualartifactsourcelanguage) 

[SequenceArtifactRendering.cs:14](https://github.com/EvotecIT/ChartForgeX/blob/main/ChartForgeX/VisualArtifacts/SequenceArtifactRendering.cs#L14)

Wraps authored sequence semantics without preparing a preview or changing the source model.

Parameters

**sequence ChartForgeX.VisualArtifacts.SequenceArtifact required**

The sequence source model.

**sourceLanguage ChartForgeX.VisualArtifacts.VisualArtifactSourceLanguage = Native optional**

The source language that produced the model.

Returns

 `VisualArtifact` A lazy source envelope; prepare explicitly before ToArtifact when a detached display snapshot is required. 

## Inherited Methods

 `public virtual bool Equals(object? obj)` [#](#method-equals-object) 

Inherited from object

Parameters

**obj object? required**

Returns

 `bool` 

 `public virtual int GetHashCode()` [#](#method-gethashcode) 

Inherited from object

Returns

 `int` 

 `public Type GetType()` [#](#method-gettype) 

Inherited from object

Returns

 `Type` 

 `public virtual string? ToString()` [#](#method-tostring) 

Inherited from object

Returns

 `string?` 

<!-- PowerForge markdown artifact sha256:A7FEAFC1C15CC6CDC6637F53D7C85FF164DDB4135D6FF0EDF2BF5603D49BA132 -->
