IsWashout
Contents
[
Hide
]ImageWatermarkOptions.IsWashout property
Gets or sets a boolean value which is responsible for washout effect of the watermark. The default value is true
.
public bool IsWashout { get; set; }
Examples
Shows how to create a watermark from an image in the local file system.
Document doc = new Document();
// Modify the image watermark's appearance with an ImageWatermarkOptions object,
// then pass it while creating a watermark from an image file.
ImageWatermarkOptions imageWatermarkOptions = new ImageWatermarkOptions();
imageWatermarkOptions.Scale = 5;
imageWatermarkOptions.IsWashout = false;
#if NET461_OR_GREATER || JAVA
// We have a different options to insert image:
doc.Watermark.SetImage(Image.FromFile(ImageDir + "Logo.jpg"), imageWatermarkOptions);
doc.Watermark.SetImage(Image.FromFile(ImageDir + "Logo.jpg"));
doc.Watermark.SetImage(ImageDir + "Logo.jpg", imageWatermarkOptions);
#elif NET5_0_OR_GREATER
using (SKBitmap image = SKBitmap.Decode(ImageDir + "Logo.jpg"))
{
doc.Watermark.SetImage(image, imageWatermarkOptions);
}
#endif
doc.Save(ArtifactsDir + "Document.ImageWatermark.docx");
See Also
- class ImageWatermarkOptions
- namespace Aspose.Words
- assembly Aspose.Words