com.groupdocs.watermark

Interfaces

Classes

Exceptions

com.groupdocs.watermark

Class OfficeImageFillFormat<TWatermarkableImage extends WatermarkableImage>

  • java.lang.Object
    • com.groupdocs.watermark.OfficeImageFillFormat<TWatermarkableImage>
  • Direct Known Subclasses:
    CellsImageFillFormat, SlidesImageFillFormat


    public abstract class OfficeImageFillFormat<TWatermarkableImage extends WatermarkableImage>
    extends Object

    Represents the image fill format settings in any supported office document.

    TWatermarkableImage: The exact type of the watermarkable image that is used as background.

    • Method Detail

      • getTileAsTexture

        public abstract boolean getTileAsTexture()

        Gets a value indicating whether the image is tiled across the background.

        Returns:
        True if the image is tiled across the background; otherwise, false (the image is stretched).
      • setTileAsTexture

        public abstract void setTileAsTexture(boolean value)

        Sets a value indicating whether the image is tiled across the background.

        Parameters:
        value - True if the image is tiled across the background; otherwise, false (the image is stretched).
      • getTransparency

        public abstract double getTransparency()

        Gets the transparency of the background image as a value from 0.0 (opaque) through 1.0 (fully transparent).

        Returns:
        The transparency of the background image as a value from 0.0 (opaque) through 1.0 (fully transparent).
      • setTransparency

        public abstract void setTransparency(double value)

        Sets the transparency of the background image as a value from 0.0 (opaque) through 1.0 (fully transparent).

        Parameters:
        value - The transparency of the background image as a value from 0.0 (opaque) through 1.0 (fully transparent).
      • getBackgroundImage

        public abstract TWatermarkableImage getBackgroundImage()

        Gets the background image.

        Returns:
        The background image. Returns null if the image is not set.
      • setBackgroundImage

        public abstract void setBackgroundImage(TWatermarkableImage value)

        Sets the background image.

        Parameters:
        value - The background image. Returns null if the image is not set.