# MermaidPacketRendering

Provides ChartForgeX rendering adapters for parsed Mermaid packet diagrams.

 Class  

`ChartForgeX.Mermaid`

**Namespace**

`ChartForgeX.Mermaid`

**Assembly**

`ChartForgeX.Mermaid`

**Source**

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

**Modifiers**

static

Provides ChartForgeX rendering adapters for parsed Mermaid packet diagrams.

## Inheritance

- object
- MermaidPacketRendering

 Filter members   

    Show inherited   

 

## Methods

 `public static PacketLayoutBlock ToPacketLayoutBlock(MermaidPacketDocument document, MermaidPacketRenderOptions? options = null)` [#](#method-topacketlayoutblock-chartforgex-mermaid-mermaidpacketdocument-chartforgex-mermaid-mermaidpacketrenderoptions) 

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

Converts a Mermaid packet document into a reusable packet-layout visual block.

Parameters

**document ChartForgeX.Mermaid.MermaidPacketDocument required**

**options ChartForgeX.Mermaid.MermaidPacketRenderOptions? = null optional**

Returns

 `PacketLayoutBlock` 

 `public static byte[] ToPng(MermaidPacketDocument document, MermaidPacketRenderOptions? options = null)` [#](#method-topng-chartforgex-mermaid-mermaidpacketdocument-chartforgex-mermaid-mermaidpacketrenderoptions) 

[MermaidPacketRendering.cs:69](https://github.com/EvotecIT/ChartForgeX/blob/main/ChartForgeX.Mermaid/MermaidPacketRendering.cs#L69)

Renders a Mermaid packet document to static PNG.

Parameters

**document ChartForgeX.Mermaid.MermaidPacketDocument required**

**options ChartForgeX.Mermaid.MermaidPacketRenderOptions? = null optional**

Returns

 `byte[]` 

 `public static string ToSvg(MermaidPacketDocument document, MermaidPacketRenderOptions? options = null)` [#](#method-tosvg-chartforgex-mermaid-mermaidpacketdocument-chartforgex-mermaid-mermaidpacketrenderoptions) 

[MermaidPacketRendering.cs:65](https://github.com/EvotecIT/ChartForgeX/blob/main/ChartForgeX.Mermaid/MermaidPacketRendering.cs#L65)

Renders a Mermaid packet document to static SVG.

Parameters

**document ChartForgeX.Mermaid.MermaidPacketDocument required**

**options ChartForgeX.Mermaid.MermaidPacketRenderOptions? = null optional**

Returns

 `string` 

 `public static VisualArtifact ToVisualArtifact(MermaidPacketDocument document, MermaidPacketRenderOptions? options = null)` [#](#method-tovisualartifact-chartforgex-mermaid-mermaidpacketdocument-chartforgex-mermaid-mermaidpacketrenderoptions) 

[MermaidPacketRendering.cs:45](https://github.com/EvotecIT/ChartForgeX/blob/main/ChartForgeX.Mermaid/MermaidPacketRendering.cs#L45)

Wraps a Mermaid packet document in a visual artifact envelope backed by a packet-layout block.

Parameters

**document ChartForgeX.Mermaid.MermaidPacketDocument required**

**options ChartForgeX.Mermaid.MermaidPacketRenderOptions? = null optional**

Returns

 `VisualArtifact` 

## 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:14CE72ADD7DA002811A950661FDB7E5A2F0C6C96AD6C2B38C461B2D73585DA6D -->
