Skip to content
ChartForgeX
Class

VisualWatermarkDecoration

ChartForgeX.VisualArtifacts

Namespace
ChartForgeX.VisualArtifacts
Assembly
ChartForgeX.Visuals
Modifiers
static

Decorates static artifact presentation while preserving its neutral semantic model.

Inheritance

  • object
  • VisualWatermarkDecoration

Methods

AddWatermarks 2 overloads
public static VisualArtifact AddWatermarks(VisualArtifact artifact, params VisualWatermark[] watermarks) #

Appends a snapshot of the supplied watermarks in declaration order.

Parameters

artifact ChartForgeX.VisualArtifacts.VisualArtifact required
watermarks ChartForgeX.VisualArtifacts.VisualWatermark[] required
public static VisualArtifact AddWatermarks(VisualArtifact artifact, VisualArtifactRenderOptions? renderOptions, params VisualWatermark[] watermarks) #

Appends watermark presentation over a static source resolved with the supplied core options.

Parameters

artifact ChartForgeX.VisualArtifacts.VisualArtifact required
renderOptions ChartForgeX.VisualArtifacts.VisualArtifactRenderOptions? required
watermarks ChartForgeX.VisualArtifacts.VisualWatermark[] required
public static string ApplyToSvg(string svg, params VisualWatermark[] watermarks) #

Appends watermark layers to trusted SVG output, preserving existing presentation such as SVG animation.

Parameters

svg string required
watermarks ChartForgeX.VisualArtifacts.VisualWatermark[] required

Returns

string
ToWatermarkedArtifact 2 overloads
public static VisualArtifact ToWatermarkedArtifact(VisualArtifact artifact, params VisualWatermark[] watermarks) #

Creates a detached artifact envelope with watermark presentation in declaration order.

Parameters

artifact ChartForgeX.VisualArtifacts.VisualArtifact required
watermarks ChartForgeX.VisualArtifacts.VisualWatermark[] required
public static VisualArtifact ToWatermarkedArtifact(VisualArtifact artifact, VisualArtifactRenderOptions? renderOptions, params VisualWatermark[] watermarks) #

Creates a detached watermarked artifact with static presentation resolved using the supplied core options.

Parameters

artifact ChartForgeX.VisualArtifacts.VisualArtifact required
renderOptions ChartForgeX.VisualArtifacts.VisualArtifactRenderOptions? required
watermarks ChartForgeX.VisualArtifacts.VisualWatermark[] required
ToWatermarkedHtmlPage 2 overloads
public static string ToWatermarkedHtmlPage(VisualArtifact artifact, string renderedSvg, params VisualWatermark[] watermarks) #

Wraps trusted, already-rendered SVG with watermarks in a standalone HTML page.

Parameters

artifact ChartForgeX.VisualArtifacts.VisualArtifact required
The unchanged host envelope supplying the title, language, and natural-size fallback.
renderedSvg string required
A complete trusted SVG document supplied by a static or animated renderer.
watermarks ChartForgeX.VisualArtifacts.VisualWatermark[] required
Watermarks captured in declaration order.

Returns

string A standalone page containing the decorated SVG and the artifact's host title and language.
public static string ToWatermarkedHtmlPage(VisualArtifact artifact, VisualArtifactRenderOptions? renderOptions, string renderedSvg, params VisualWatermark[] watermarks) #

Wraps trusted, already-rendered SVG with watermarks and explicit HTML host sizing.

Parameters

artifact ChartForgeX.VisualArtifacts.VisualArtifact required
The unchanged host envelope supplying the title, language, and natural-size fallback.
renderOptions ChartForgeX.VisualArtifacts.VisualArtifactRenderOptions? required
HTML sizing options; other rendering options do not alter the supplied SVG.
renderedSvg string required
A complete trusted SVG document supplied by a static or animated renderer.
watermarks ChartForgeX.VisualArtifacts.VisualWatermark[] required
Watermarks captured in declaration order.

Returns

string A standalone page containing the decorated SVG with the selected host sizing.
public static string ToWatermarkedSvg(VisualArtifact artifact, string renderedSvg, params VisualWatermark[] watermarks) #

Appends watermark layers to trusted, already-rendered SVG without resolving the artifact's model.

Parameters

artifact ChartForgeX.VisualArtifacts.VisualArtifact required
The unchanged host envelope; its natural size is a fallback when SVG dimensions are absent.
renderedSvg string required
A complete trusted SVG document supplied by a static or animated renderer.
watermarks ChartForgeX.VisualArtifacts.VisualWatermark[] required
Watermarks captured in declaration order.

Returns

string The supplied markup with watermark layers inserted before its closing SVG element.