GemBox.Document
  • Overview
  • Examples
  • Free version
  • Support
  • Pricelist

    Show / Hide Table of Contents

    PictureWatermark Class

    Namespace:
    GemBox.Document
    Assembly:
    GemBox.Document.dll

    Represents the picture watermark that appears behind the document content.

    • C#
    • VB.NET
    public class PictureWatermark : Watermark
    Public Class PictureWatermark
        Inherits Watermark
    Inheritance:
    System.Object
    Watermark
    PictureWatermark

    Constructors

    PictureWatermark(DocumentModel, Picture)

    Initializes a new instance of the picture watermark.

    • C#
    • VB.NET
    public PictureWatermark(DocumentModel document, Picture picture)
    Public Sub New(document As DocumentModel, picture As Picture)
    Parameters
    document
    DocumentModel

    The owner document.

    picture
    Picture

    The picture that will represent this watermark.

    Properties

    Picture

    Gets or sets the picture that represents the watermark.

    • C#
    • VB.NET
    public Picture Picture { get; set; }
    Public Property Picture As Picture
    Property Value
    Picture

    The picture that represents the watermark.

    Washout

    Gets or sets whether washout should be applied to the picture watermark The default value is true.

    • C#
    • VB.NET
    public bool Washout { get; set; }
    Public Property Washout As Boolean
    Property Value
    System.Boolean

    True if washout should be applied, false otherwise.

    Methods

    AutoScale()

    Scales the picture watermark to automatically fit into the page. The watermark has to be already assigned to a HeaderFooter for this method to work.

    • C#
    • VB.NET
    public void AutoScale()
    Public Sub AutoScale
    Back to top

    Facebook • Twitter • LinkedIn

    © GemBox Ltd. — All rights reserved.