ImageWatermarkOptions.Scale
ImageWatermarkOptions Scale property. Gets or sets the scale factor expressed as a fraction of the image. The default value is 0 auto.
ImageWatermarkOptions.Scale property
Gets or sets the scale factor expressed as a fraction of the image. The default value is 0 - auto.
public double Scale { get; set; }
Exceptions
exception | condition |
---|---|
ArgumentOutOfRangeException | Throws when argument was out of the range of valid values. |
Remarks
Valid values range from 0 to 65.5 inclusive.
Auto scale means that the watermark will be scaled to its max width and max height relative to the page margins.
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
- class ImageWatermarkOptions
- namespace Wordize.Watermarking
- assembly Wordize