VisualWatermarkDecoration
ChartForgeX.VisualArtifacts
Decorates static artifact presentation while preserving its neutral semantic model.
Inheritance
- object
- VisualWatermarkDecoration
Methods
public static VisualArtifact AddWatermarks(VisualArtifact artifact, params VisualWatermark[] watermarks) #Appends a snapshot of the supplied watermarks in declaration order.
Parameters
- artifact ChartForgeX.VisualArtifacts.VisualArtifact
- watermarks ChartForgeX.VisualArtifacts.VisualWatermark[]
Returns
VisualArtifactpublic 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
- renderOptions ChartForgeX.VisualArtifacts.VisualArtifactRenderOptions?
- watermarks ChartForgeX.VisualArtifacts.VisualWatermark[]
Returns
VisualArtifactpublic 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
- watermarks ChartForgeX.VisualArtifacts.VisualWatermark[]
Returns
stringpublic static VisualArtifact ToWatermarkedArtifact(VisualArtifact artifact, params VisualWatermark[] watermarks) #Creates a detached artifact envelope with watermark presentation in declaration order.
Parameters
- artifact ChartForgeX.VisualArtifacts.VisualArtifact
- watermarks ChartForgeX.VisualArtifacts.VisualWatermark[]
Returns
VisualArtifactpublic 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
- renderOptions ChartForgeX.VisualArtifacts.VisualArtifactRenderOptions?
- watermarks ChartForgeX.VisualArtifacts.VisualWatermark[]
Returns
VisualArtifactpublic 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
- The unchanged host envelope supplying the title, language, and natural-size fallback.
- renderedSvg string
- A complete trusted SVG document supplied by a static or animated renderer.
- watermarks ChartForgeX.VisualArtifacts.VisualWatermark[]
- 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
- The unchanged host envelope supplying the title, language, and natural-size fallback.
- renderOptions ChartForgeX.VisualArtifacts.VisualArtifactRenderOptions?
- HTML sizing options; other rendering options do not alter the supplied SVG.
- renderedSvg string
- A complete trusted SVG document supplied by a static or animated renderer.
- watermarks ChartForgeX.VisualArtifacts.VisualWatermark[]
- 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
- The unchanged host envelope; its natural size is a fallback when SVG dimensions are absent.
- renderedSvg string
- A complete trusted SVG document supplied by a static or animated renderer.
- watermarks ChartForgeX.VisualArtifacts.VisualWatermark[]
- Watermarks captured in declaration order.
Returns
string The supplied markup with watermark layers inserted before its closing SVG element.