Class PictureWatermark
Represents a picture (image) watermark that can be placed in a header to appear behind the body text on every page of the section.
Inherited Members
Namespace: DRIT.Document.Drawing
Assembly: DRIT.Document.dll
Syntax
public class PictureWatermark : Watermark
Constructors
PictureWatermark(Document, byte[])
Creates a new picture watermark from the specified image data.
Declaration
public PictureWatermark(Document document, byte[] imageData)
Parameters
| Type | Name | Description |
|---|---|---|
| Document | document | The owning document. |
| byte[] | imageData | The raw image bytes (PNG, JPEG, etc.). |
Properties
Description
Gets or sets the description (alt text) of the watermark image.
Declaration
public string Description { get; set; }
Property Value
| Type | Description |
|---|---|
| string |
Height
Gets or sets the height of the watermark in points.
Declaration
public double Height { get; set; }
Property Value
| Type | Description |
|---|---|
| double |
PictureShape
Gets the underlying picture shape (strongly typed).
Declaration
public PictureShape PictureShape { get; }
Property Value
| Type | Description |
|---|---|
| PictureShape |
Rotation
Gets or sets the rotation angle in degrees.
Declaration
public double Rotation { get; set; }
Property Value
| Type | Description |
|---|---|
| double |
Shape
Gets the underlying picture shape that represents this watermark.
Declaration
public override AbstractShape Shape { get; }
Property Value
| Type | Description |
|---|---|
| AbstractShape |
Overrides
Title
Gets or sets the title of the watermark image.
Declaration
public string Title { get; set; }
Property Value
| Type | Description |
|---|---|
| string |
Width
Gets or sets the width of the watermark in points.
Declaration
public double Width { get; set; }
Property Value
| Type | Description |
|---|---|
| double |
Methods
SetDiagonal()
Sets the watermark to a diagonal orientation (315 degrees).
Declaration
public void SetDiagonal()