Class Watermark
Represents a watermark that can be rendered on each page.
Inheritance
System.Object
    Watermark
  Namespace: PSPDFKit
Assembly: PSPDFKit.dll
Syntax
public sealed class WatermarkConstructors
Watermark(SoftwareBitmap)
Constructs a watermark. Sets the SizeOnPage to same values as image size. Sets the Horizontal and Vertical alignment to Center.
Declaration
public Watermark(SoftwareBitmap image)Parameters
| Type | Name | Description | 
|---|---|---|
| Windows.Graphics.Imaging.SoftwareBitmap | image | The image to be rendered as the watermark. | 
Properties
HorizontalAlignment
The horizontal alignment of the watermark on the page.
Declaration
public HorizontalAlignment HorizontalAlignment { get; set; }Property Value
| Type | Description | 
|---|---|
| Windows.UI.Xaml.HorizontalAlignment | 
Image
The image to be rendered as the watermark.
Declaration
public WriteableBitmap Image { get; }Property Value
| Type | Description | 
|---|---|
| Windows.UI.Xaml.Media.Imaging.WriteableBitmap | 
SizeOnPage
The size of the watermark on the page. Horizontal or Vertical alignment values of Stretch override width and height respectively.
Declaration
public Size SizeOnPage { get; set; }Property Value
| Type | Description | 
|---|---|
| Windows.Foundation.Size | 
VerticalAlignment
The vertical alignment of the watermark on the page.
Declaration
public VerticalAlignment VerticalAlignment { get; set; }Property Value
| Type | Description | 
|---|---|
| Windows.UI.Xaml.VerticalAlignment | 
Methods
SetImage(SoftwareBitmap)
Set the image to be rendered as the watermark.
Declaration
public void SetImage(SoftwareBitmap softwareBitmap)Parameters
| Type | Name | Description | 
|---|---|---|
| Windows.Graphics.Imaging.SoftwareBitmap | softwareBitmap |