Skip to content
ChartForgeX
Class

VisualWatermark

ChartForgeX.VisualArtifacts

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) #

Creates an embedded raster image watermark.

Parameters

imageBytes byte[] required
imageMimeType string required
public static VisualWatermark FromText(string text) #

Creates a text watermark.

Parameters

text string required

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 bool 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 bool 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.