ImageWatermarkOptions Class
Wordize.Watermarking.ImageWatermarkOptions class. Contains options that can be specified when adding a watermark with image.
ImageWatermarkOptions class
Contains options that can be specified when adding a watermark with image.
public class ImageWatermarkOptions
Constructors
Name | Description |
---|---|
ImageWatermarkOptions() | The default constructor. |
Properties
Name | Description |
---|---|
IsWashout { get; set; } | Gets or sets a boolean value which is responsible for washout effect of the watermark. The default value is true . |
Scale { get; set; } | Gets or sets the scale factor expressed as a fraction of the image. The default value is 0 - auto. |
Examples
Shows how to add image watermark into the document with custom watermark options.
ImageWatermarkOptions imageWatermarkOptions = new ImageWatermarkOptions();
imageWatermarkOptions.Scale = 0.1;
imageWatermarkOptions.IsWashout = true;
Watermarker.SetImage(MyDir + "Simple.docx", ArtifactsDir + "Watermarker.SetImage.doc", MyDir + @"Images\logo.png", imageWatermarkOptions);
See Also
- namespace Wordize.Watermarking
- assembly Wordize