ImageStamp

Inheritance: java.lang.Object, com.aspose.pdf.Stamp com.aspose.pdf.ImageStamp, com.aspose.pdf.Stamp, com.aspose.pdf.ImageStamp

public final class ImageStamp extends Stamp

Represents a graphic stamp.

Constructors

ConstructorDescription
ImageStampInitializes a new instance of the {@code ImageStamp} class.
ImageStampCreates image stamp by image in the specified file.

Methods

MethodDescription
closeCloses this instance
getAlternativeTextGets Alternative Text for image stamp.
getHeightGets image height. Setting this image allows to scale image vertically.
getImageGets image stream used for stamping.
getQualityGets quality of image stamp in percent. Valid values are 0..100%.
getWidthGets image width. Setting this property allos to scal image horizontally.
getXIndentGets and sets horizontal stamp coordinate, starting from the left.
getYIndentGets and sets vertical stamp coordinate, starting from the bottom.
putAdds graphic stamp on the page.
setAlternativeTextSets Alternative Text for image stamp.
setHeightSets image height. Setting this image allows to scale image vertically.
setQualitySets quality of image stamp in percent. Valid values are 0..100%.
setWidthSets image width. Setting this property allos to scal image horizontally.
setXIndentGets and sets horizontal stamp coordinate, starting from the left.
setYIndentGets and sets vertical stamp coordinate, starting from the bottom.

ImageStamp

Initializes a new instance of the {@code ImageStamp} class.

ImageStamp

Creates image stamp by image in the specified file.

close

public void close()

Closes this instance

getAlternativeText

public final String getAlternativeText()

Gets Alternative Text for image stamp.

Returns: String value

getHeight

public double getHeight()

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

Returns: double value

getImage

public InputStream getImage()

Gets image stream used for stamping.

Returns: InputStream object

getQuality

public int getQuality()

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

Returns: int value

getWidth

public double getWidth()

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

Returns: double value

getXIndent

public double getXIndent()

Gets and sets horizontal stamp coordinate, starting from the left.

Returns: double value

getYIndent

public double getYIndent()

Gets and sets vertical stamp coordinate, starting from the bottom.

Returns: double value

put

Adds graphic stamp on the page.

setAlternativeText

Sets Alternative Text for image stamp.

setHeight

public void setHeight(double value)

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

Parameters:

ParameterTypeDescription
valuedouble value

setQuality

public void setQuality(int value)

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

Parameters:

ParameterTypeDescription
valueint value

setWidth

public void setWidth(double value)

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

Parameters:

ParameterTypeDescription
valuedouble value

setXIndent

public void setXIndent(double value)

Gets and sets horizontal stamp coordinate, starting from the left.

Parameters:

ParameterTypeDescription
valuedouble value

setYIndent

public void setYIndent(double value)

Gets and sets vertical stamp coordinate, starting from the bottom.

Parameters:

ParameterTypeDescription
valuedouble value