API Reference
VisualWatermark
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.ToWatermarkedArtifact
- Extension method VisualArtifact.ToWatermarkedHtmlPage
- Extension method VisualArtifact.ToWatermarkedSvg
- Extension method VisualArtifact.WithWatermarks
- Method VisualWatermarkDecoration.ApplyToSvg
- Method VisualWatermarkDecoration.ToWatermarkedArtifact
- Method VisualWatermarkDecoration.ToWatermarkedHtmlPage
- Method VisualWatermarkDecoration.ToWatermarkedSvg
- Method VisualWatermarkDecoration.WithWatermarks
Methods
public static VisualWatermark FromImage(Byte[] imageBytes, String imageMimeType) #VisualWatermarkCreates an embedded raster image watermark.
Parameters
- imageBytes System.Byte[]
- imageMimeType System.String
public static VisualWatermark FromText(String text) #VisualWatermarkCreates a text watermark.
Parameters
- text System.String
Inherited Methods
public virtual Boolean Equals(Object? obj) #BooleanParameters
- obj Object?
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.