Aspose::Words::ImageWatermarkOptions::get_IsWashout method

ImageWatermarkOptions::get_IsWashout method

Gets or sets a boolean value which is responsible for washout effect of the watermark. The default value is true.

bool Aspose::Words::ImageWatermarkOptions::get_IsWashout() const

Examples

Shows how to create a watermark from an image in the local file system.

auto doc = MakeObject<Document>();

// Modify the image watermark's appearance with an ImageWatermarkOptions object,
// then pass it while creating a watermark from an image file.
auto imageWatermarkOptions = MakeObject<ImageWatermarkOptions>();
imageWatermarkOptions->set_Scale(5);
imageWatermarkOptions->set_IsWashout(false);

doc->get_Watermark()->SetImage(System::Drawing::Image::FromFile(ImageDir + u"Logo.jpg"), imageWatermarkOptions);

doc->Save(ArtifactsDir + u"Document.ImageWatermark.docx");

See Also