Project

ChartForgeX

Render deterministic charts, dashboards, topology, hierarchy, and report visuals directly from .NET.

Stars 47
Forks 2
NuGet downloads 75,067
Release ChartForgeX-v2.0.0
Language: HTML Updated: 2026-10-12

API Reference

Class

VisualWatermark

Namespace ChartForgeX.VisualArtifacts
Assembly ChartForgeX.Visuals
Modifiers sealed

Defines a deterministic text or image watermark for static visual artifact exports.

Inheritance

  • Object
  • VisualWatermark

Usage

Explore 11 API references to this type

This type appears in these public API surfaces even when no hand-authored example is attached directly to the page.

Returned or exposed by 2

Accepted by parameters 9

Methods

public static VisualWatermark FromImage(Byte[] imageBytes, String imageMimeType) #
Returns: VisualWatermark

Creates an embedded raster image watermark.

Parameters

imageBytes System.Byte[] requiredposition: 0
imageMimeType System.String requiredposition: 1
public static VisualWatermark FromText(String text) #
Returns: VisualWatermark

Creates a text watermark.

Parameters

text System.String requiredposition: 0

Properties

public VisualWatermarkKind Kind { get; } #

Gets the watermark content kind.

public String? Text { get; } #

Gets the text content for a text watermark.

public Byte[]? ImageBytes { get; } #

Gets a defensive copy of the raster image bytes for an image watermark.

public String? ImageMimeType { get; } #

Gets the image media type for an image watermark.

public VisualCanvasAnchor Anchor { get; set; } #

Gets or sets the watermark anchor.

public Double OffsetX { get; set; } #

Gets or sets the horizontal offset from the anchor.

public Double OffsetY { get; set; } #

Gets or sets the vertical offset from the anchor.

public Double Padding { get; set; } #

Gets or sets the inset from anchored canvas edges.

public Double Opacity { get; set; } #

Gets or sets watermark opacity from zero to one.

public Double RotationDegrees { get; set; } #

Gets or sets clockwise rotation in degrees.

public Double Scale { get; set; } #

Gets or sets a positive scale applied to text size or image dimensions.

public ChartColor Color { get; set; } #

Gets or sets the text color.

public Double FontSize { get; set; } #

Gets or sets the base text size in pixels.

public Boolean Emphasized { get; set; } #

Gets or sets whether text uses an emphasized weight.

public Double? Width { get; set; } #

Gets or sets an optional image width in pixels before VisualWatermark.Scale is applied.

public Double? Height { get; set; } #

Gets or sets an optional image height in pixels before VisualWatermark.Scale is applied.

public Boolean Repeat { get; set; } #

Gets or sets whether the watermark repeats across the canvas.

public Double RepeatSpacingX { get; set; } #

Gets or sets horizontal spacing between repeated watermark anchors.

public Double RepeatSpacingY { get; set; } #

Gets or sets vertical spacing between repeated watermark anchors.