com.groupdocs.watermark.contents

Interfaces

Classes

com.groupdocs.watermark.contents

Class WatermarkableImage

    • Method Detail

      • getHeight

        public final int getHeight()

        Gets the height of this WatermarkableImage in pixels.

        Returns:
        The height of this WatermarkableImage in pixels.
      • getWidth

        public final int getWidth()

        Gets the width of this WatermarkableImage in pixels.

        Returns:
        The width of this WatermarkableImage in pixels.
      • add

        public final void add(Watermark watermark)

        Adds a watermark to this WatermarkableImage. This method assumes that watermark offset and size are measured in pixels (if they are assigned).

        Parameters:
        watermark - The watermark to add to the image.
      • getBytes

        public final byte[] getBytes()

        Gets the image as byte array.

        Returns:
        The image data.