# VisualStoryMediaSurface

Displays a resolved raster artifact with an optional vector representation.

 Class  

`ChartForgeX.Stories`

**Namespace**

`ChartForgeX.Stories`

**Assembly**

`ChartForgeX.Stories`

**Source**

[VisualStoryMediaSurface.cs:34](https://github.com/EvotecIT/ChartForgeX/blob/main/ChartForgeX.Stories/Stories/VisualStoryMediaSurface.cs#L34)

**Base**

`VisualStorySurface`

**Modifiers**

sealed

Displays a resolved raster artifact with an optional vector representation.

## Inheritance

- [VisualStorySurface](/api/chartforgex-stories-visualstorysurface/)
- VisualStoryMediaSurface

 Filter members   

    Show inherited   

 

## Constructors

 VisualStoryMediaSurface 4 overloads 

 `public VisualStoryMediaSurface(IStaticVisualSource source, string accessibleText)` [#](#constructor-ctor-chartforgex-rendering-istaticvisualsource-string) 

[VisualStoryMediaSurface.cs:34](https://github.com/EvotecIT/ChartForgeX/blob/main/ChartForgeX.Stories/Stories/VisualStoryMediaSurface.cs#L34)

Captures a common static source without referencing its optional producer package.

Parameters

**source ChartForgeX.Rendering.IStaticVisualSource required**

**accessibleText string required**

 `public VisualStoryMediaSurface(PreparedVisual prepared, string accessibleText)` [#](#constructor-ctor-chartforgex-rendering-preparedvisual-string) 

[VisualStoryMediaSurface.cs:39](https://github.com/EvotecIT/ChartForgeX/blob/main/ChartForgeX.Stories/Stories/VisualStoryMediaSurface.cs#L39)

Captures native prepared geometry as the story's static vector and raster media.

Parameters

**prepared ChartForgeX.Rendering.PreparedVisual required**

**accessibleText string required**

 `public VisualStoryMediaSurface(byte[] rasterBytes, string accessibleText, string? svg = null)` [#](#constructor-ctor-byte-string-string) 

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

Initializes a raster artifact with an optional static SVG representation that has the same intrinsic aspect ratio.

Parameters

**rasterBytes byte[] required**

**accessibleText string required**

**svg string? = null optional**

 `public VisualStoryMediaSurface(RgbaImage raster, string accessibleText, string? svg = null)` [#](#constructor-ctor-chartforgex-raster-rgbaimage-string-string) 

[VisualStoryMediaSurface.cs:67](https://github.com/EvotecIT/ChartForgeX/blob/main/ChartForgeX.Stories/Stories/VisualStoryMediaSurface.cs#L67)

Initializes an RGBA artifact with an optional static SVG representation that has the same intrinsic aspect ratio.

Parameters

**raster ChartForgeX.Raster.RgbaImage required**

**accessibleText string required**

**svg string? = null optional**

## 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?` 

## Properties

 `public RgbaImage Raster { get; }` [#](#property-raster) 

[VisualStoryMediaSurface.cs:73](https://github.com/EvotecIT/ChartForgeX/blob/main/ChartForgeX.Stories/Stories/VisualStoryMediaSurface.cs#L73)

Gets the resolved raster representation used by PNG, GIF, and APNG output.

 `public string Svg { get; }` [#](#property-svg) 

[VisualStoryMediaSurface.cs:76](https://github.com/EvotecIT/ChartForgeX/blob/main/ChartForgeX.Stories/Stories/VisualStoryMediaSurface.cs#L76)

Gets an optional resolved SVG representation used by SVG output.

## Inherited Properties

 `public VisualStorySurfaceKind Kind { get; }` [#](#property-kind) 

[VisualStorySurface.cs:35](https://github.com/EvotecIT/ChartForgeX/blob/main/ChartForgeX.Stories/Stories/VisualStorySurface.cs#L35)

Inherited from [VisualStorySurface](/api/chartforgex-stories-visualstorysurface/)

 `public virtual string AccessibleText { get; }` [#](#property-accessibletext) 

[VisualStorySurface.cs:38](https://github.com/EvotecIT/ChartForgeX/blob/main/ChartForgeX.Stories/Stories/VisualStorySurface.cs#L38)

Inherited from [VisualStorySurface](/api/chartforgex-stories-visualstorysurface/)

<!-- PowerForge markdown artifact sha256:2374AF60DF8EC410097AC4FE3C6CE30287753D180B3EC4F375A4EFFD25D23CAB -->
