# PdfImageWatermark

Reusable image watermark rendered behind page content.

Class 

`OfficeIMO.Pdf`

**Namespace**

`OfficeIMO.Pdf`

**Assembly**

`OfficeIMO.Pdf`

**Source revision**

`be6c300e4ab1` with working tree changes

**Source**

[PdfImageWatermark.cs:14](https://github.com/EvotecIT/OfficeIMO/blob/be6c300e4ab1859837b961c64fbfb2b2a1886cd0/Sources/OfficeIMO.Pdf/Model/PdfImageWatermark.cs#L14)

**Modifiers**

sealed

Reusable image watermark rendered behind page content.

## Inheritance

- object
- PdfImageWatermark

## Usage

Explore 7 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 4

- Property [PdfCreateOptions.EvenPageImageWatermark](/api/pdf/officeimo-pdf-pdfcreateoptions/#property-evenpageimagewatermark)
- Property [PdfCreateOptions.FirstPageImageWatermark](/api/pdf/officeimo-pdf-pdfcreateoptions/#property-firstpageimagewatermark)
- Property [PdfCreateOptions.ImageWatermark](/api/pdf/officeimo-pdf-pdfcreateoptions/#property-imagewatermark)
- Method [PdfImageWatermark.Clone](/api/pdf/officeimo-pdf-pdfimagewatermark/#method-clone)

### Accepted by parameters 3

- Method [PdfPageBuilder.EvenPagesImageWatermark](/api/pdf/officeimo-pdf-pdfpagebuilder/#method-evenpagesimagewatermark-officeimo-pdf-pdfimagewatermark) parameter `watermark`
- Method [PdfPageBuilder.FirstPageImageWatermark](/api/pdf/officeimo-pdf-pdfpagebuilder/#method-firstpageimagewatermark-officeimo-pdf-pdfimagewatermark) parameter `watermark`
- Method [PdfPageBuilder.ImageWatermark](/api/pdf/officeimo-pdf-pdfpagebuilder/#method-imagewatermark-officeimo-pdf-pdfimagewatermark) parameter `watermark`

Filter members 

Show inherited

## Constructors

`public PdfImageWatermark(byte[] data, OfficeLength width, OfficeLength height)` [#](#constructor-ctor-byte-officeimo-officelength-officeimo-officelength)

[PdfImageWatermark.cs:14](https://github.com/EvotecIT/OfficeIMO/blob/be6c300e4ab1859837b961c64fbfb2b2a1886cd0/Sources/OfficeIMO.Pdf/Model/PdfImageWatermark.cs#L14)

Creates an image watermark from raster bytes supported by OfficeIMO.Drawing.

Parameters

**data byte[] required**

**width OfficeIMO.OfficeLength required**

**height OfficeIMO.OfficeLength required**

## Methods

`public PdfImageWatermark Clone()` [#](#method-clone)

[PdfImageWatermark.cs:85](https://github.com/EvotecIT/OfficeIMO/blob/be6c300e4ab1859837b961c64fbfb2b2a1886cd0/Sources/OfficeIMO.Pdf/Model/PdfImageWatermark.cs#L85)

Creates a deep copy of this watermark.

Returns

`PdfImageWatermark`

## Inherited Methods

`public virtual bool Equals(object? obj)` [#](#method-equals-object)

Inherited from object

Parameters

**obj object? required**

Returns

`bool`

`public virtual int GetHashCode()` [#](#method-gethashcode)

Inherited from object

Returns

`int`

`public Type GetType()` [#](#method-gettype)

Inherited from object

Returns

`Type`

`public virtual string? ToString()` [#](#method-tostring)

Inherited from object

Returns

`string?`

## Properties

`public OfficeLength Width { get; set; }` [#](#property-width)

[PdfImageWatermark.cs:30](https://github.com/EvotecIT/OfficeIMO/blob/be6c300e4ab1859837b961c64fbfb2b2a1886cd0/Sources/OfficeIMO.Pdf/Model/PdfImageWatermark.cs#L30)

Target watermark width in points.

`public OfficeLength Height { get; set; }` [#](#property-height)

[PdfImageWatermark.cs:39](https://github.com/EvotecIT/OfficeIMO/blob/be6c300e4ab1859837b961c64fbfb2b2a1886cd0/Sources/OfficeIMO.Pdf/Model/PdfImageWatermark.cs#L39)

Target watermark height in points.

`public double Opacity { get; set; }` [#](#property-opacity)

[PdfImageWatermark.cs:48](https://github.com/EvotecIT/OfficeIMO/blob/be6c300e4ab1859837b961c64fbfb2b2a1886cd0/Sources/OfficeIMO.Pdf/Model/PdfImageWatermark.cs#L48)

Fill opacity from 0 to 1. Defaults to 0.16.

`public double RotationAngle { get; set; }` [#](#property-rotationangle)

[PdfImageWatermark.cs:60](https://github.com/EvotecIT/OfficeIMO/blob/be6c300e4ab1859837b961c64fbfb2b2a1886cd0/Sources/OfficeIMO.Pdf/Model/PdfImageWatermark.cs#L60)

Rotation angle in degrees. Defaults to 0.

<!-- PowerForge markdown artifact sha256:7FB1369CDD692DF2C9B18012FEF2ADD8E49AEA769E26D6D3718EC3C0C294FBE7 -->
