# FlowArtifactRendering

Provides static preview rendering helpers for flow artifacts.

 Class  

`ChartForgeX.VisualArtifacts`

**Namespace**

`ChartForgeX.VisualArtifacts`

**Assembly**

`ChartForgeX`

**Source**

[FlowArtifactRendering.cs:19](https://github.com/EvotecIT/ChartForgeX/blob/main/ChartForgeX/VisualArtifacts/FlowArtifactRendering.cs#L19)

**Modifiers**

static

Provides static preview rendering helpers for flow artifacts.

## Inheritance

- object
- FlowArtifactRendering

 Filter members   

    Show inherited   

 

## Methods

 `public static string ToHtmlPage(FlowArtifact flow)` [#](#method-tohtmlpage-chartforgex-visualartifacts-flowartifact) 

[FlowArtifactRendering.cs:93](https://github.com/EvotecIT/ChartForgeX/blob/main/ChartForgeX/VisualArtifacts/FlowArtifactRendering.cs#L93)

Renders a flow artifact static preview to a standalone HTML page.

Parameters

**flow ChartForgeX.VisualArtifacts.FlowArtifact required**

The flow artifact.

Returns

 `string` HTML markup. 

 `public static byte[] ToPng(FlowArtifact flow)` [#](#method-topng-chartforgex-visualartifacts-flowartifact) 

[FlowArtifactRendering.cs:101](https://github.com/EvotecIT/ChartForgeX/blob/main/ChartForgeX/VisualArtifacts/FlowArtifactRendering.cs#L101)

Renders a flow artifact static preview to PNG.

Parameters

**flow ChartForgeX.VisualArtifacts.FlowArtifact required**

The flow artifact.

Returns

 `byte[]` PNG bytes. 

 `public static string ToSvg(FlowArtifact flow)` [#](#method-tosvg-chartforgex-visualartifacts-flowartifact) 

[FlowArtifactRendering.cs:86](https://github.com/EvotecIT/ChartForgeX/blob/main/ChartForgeX/VisualArtifacts/FlowArtifactRendering.cs#L86)

Renders a flow artifact static preview to SVG.

Parameters

**flow ChartForgeX.VisualArtifacts.FlowArtifact required**

The flow artifact.

Returns

 `string` SVG markup. 

 `public static TopologyChart ToTopologyChart(FlowArtifact flow)` [#](#method-totopologychart-chartforgex-visualartifacts-flowartifact) 

[FlowArtifactRendering.cs:19](https://github.com/EvotecIT/ChartForgeX/blob/main/ChartForgeX/VisualArtifacts/FlowArtifactRendering.cs#L19)

Converts a flow artifact into a topology chart for deterministic static previews.

Parameters

**flow ChartForgeX.VisualArtifacts.FlowArtifact required**

The flow artifact.

Returns

 `TopologyChart` A topology chart preview model. 

 `public static VisualArtifact ToVisualArtifact(FlowArtifact flow, VisualArtifactSourceLanguage sourceLanguage = Native)` [#](#method-tovisualartifact-chartforgex-visualartifacts-flowartifact-chartforgex-visualartifacts-visualartifactsourcelanguage) 

[FlowArtifactRendering.cs:59](https://github.com/EvotecIT/ChartForgeX/blob/main/ChartForgeX/VisualArtifacts/FlowArtifactRendering.cs#L59)

Wraps a flow artifact in a product-neutral visual artifact envelope.

Parameters

**flow ChartForgeX.VisualArtifacts.FlowArtifact required**

The flow artifact.

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

The source language that produced the flow.

Returns

 `VisualArtifact` A visual artifact envelope. 

## 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:80CD3A8C8012DFA896829B3B6468E67640ECDAE97A4AB11D25D016646C867209 -->
