Method Image

Namespace
SoftZenPdf
Assembly
SoftZenPdf.dll

Image(PdfImage, double, double, double)

Creates an image watermark, such as a logo or a "confidential" stamp.

public static Watermark Image(PdfImage image, double scale = 0.6, double angle = 0, double opacity = 0.2)

Parameters

image PdfImage

The image.

scale double

Size relative to the largest the image can be while fitting the page; 1 fills the page width or height.

angle double

Rotation in degrees, counter-clockwise.

opacity double

Opacity from 0 to 1.

Returns

Watermark

Exceptions

ArgumentOutOfRangeException

opacity is outside 0–1.