VisualWatermark
ChartForgeX.VisualArtifacts
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
- Method VisualWatermark.FromImage
- Method VisualWatermark.FromText
Accepted by parameters 9
- Extension method VisualArtifact.AddWatermarks
- Extension method VisualArtifact.ToWatermarkedArtifact
- Extension method VisualArtifact.ToWatermarkedHtmlPage
- Extension method VisualArtifact.ToWatermarkedSvg
- Method VisualWatermarkDecoration.AddWatermarks
- Method VisualWatermarkDecoration.ApplyToSvg
- Method VisualWatermarkDecoration.ToWatermarkedArtifact
- Method VisualWatermarkDecoration.ToWatermarkedHtmlPage
- Method VisualWatermarkDecoration.ToWatermarkedSvg
Methods
public static VisualWatermark FromImage(byte[] imageBytes, string imageMimeType) #Creates an embedded raster image watermark.
Parameters
- imageBytes byte[]
- imageMimeType string
Returns
VisualWatermarkpublic static VisualWatermark FromText(string text) #Creates a text watermark.
Parameters
- text string
Returns
VisualWatermarkInherited Methods
Properties
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 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.