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
imagePdfImageThe image.
scaledoubleSize relative to the largest the image can be while fitting the page; 1 fills the page width or height.
angledoubleRotation in degrees, counter-clockwise.
opacitydoubleOpacity from 0 to 1.
Returns
Exceptions
- ArgumentOutOfRangeException
opacityis outside 0–1.