com.aspose.pdf

Interfaces

Classes

Enums

Exceptions

com.aspose.pdf

Class ImageStamp



  • public final class ImageStamp
    extends Stamp

    Reresents graphic stamp.

    • Constructor Detail

      • ImageStamp

        public ImageStamp(com.aspose.ms.System.IO.Stream image)

        Initializes a new instance of the ImageStamp class.

        Parameters:
        image - Stream which contains image data.
      • ImageStamp

        public ImageStamp(InputStream image)

        Initializes a new instance of the ImageStamp class.

        Parameters:
        image - Stream which contains image data.
      • ImageStamp

        public ImageStamp(String fileName)

        Creates image stamp by image in the specified file.

        Parameters:
        fileName - Name of the file which contains image.
    • Method Detail

      • getImage

        public InputStream getImage()

        Gets image stream used for stamping.

        Returns:
        InputStream object
      • getWidth

        public double getWidth()

        Gets image width. Setting this property allos to scal image horizontally.

        Overrides:
        getWidth in class Stamp
        Returns:
        double value
      • setWidth

        public void setWidth(double value)

        Sets image width. Setting this property allos to scal image horizontally.

        Overrides:
        setWidth in class Stamp
        Parameters:
        value - double value
      • getHeight

        public double getHeight()

        Gets image height. Setting this image allows to scale image vertically.

        Overrides:
        getHeight in class Stamp
        Returns:
        double value
      • setHeight

        public void setHeight(double value)

        Sets image height. Setting this image allows to scale image vertically.

        Overrides:
        setHeight in class Stamp
        Parameters:
        value - double value
      • getQuality

        public int getQuality()

        Gets quality of image stamp in percent. Valid values are 0..100%.

        Returns:
        int value
      • setQuality

        public void setQuality(int value)

        Sets quality of image stamp in percent. Valid values are 0..100%.

        Parameters:
        value - int value
      • put

        public void put(Page page)

        Adds graphic stamp on the page.

        Specified by:
        put in class Stamp
        Parameters:
        page - Page for stamping.
      • close

        public void close()
        Closes this instance