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
| Constructor | Description |
|---|---|
| ImageStamp | Initializes a new instance of the {@code ImageStamp} class. |
| ImageStamp | Creates image stamp by image in the specified file. |
Methods
| Method | Description |
|---|---|
| close | Closes this instance |
| getAlternativeText | Gets Alternative Text for image stamp. |
| getHeight | Gets image height. Setting this image allows to scale image vertically. |
| getImage | Gets image stream used for stamping. |
| getQuality | Gets quality of image stamp in percent. Valid values are 0..100%. |
| getWidth | Gets image width. Setting this property allos to scal image horizontally. |
| getXIndent | Gets and sets horizontal stamp coordinate, starting from the left. |
| getYIndent | Gets and sets vertical stamp coordinate, starting from the bottom. |
| put | Adds graphic stamp on the page. |
| setAlternativeText | Sets Alternative Text for image stamp. |
| setHeight | Sets image height. Setting this image allows to scale image vertically. |
| setQuality | Sets quality of image stamp in percent. Valid values are 0..100%. |
| setWidth | Sets image width. Setting this property allos to scal image horizontally. |
| setXIndent | Gets and sets horizontal stamp coordinate, starting from the left. |
| setYIndent | Gets 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:
| Parameter | Type | Description |
|---|---|---|
| value | double value |
setQuality
public void setQuality(int value)
Sets quality of image stamp in percent. Valid values are 0..100%.
Parameters:
| Parameter | Type | Description |
|---|---|---|
| value | int value |
setWidth
public void setWidth(double value)
Sets image width. Setting this property allos to scal image horizontally.
Parameters:
| Parameter | Type | Description |
|---|---|---|
| value | double value |
setXIndent
public void setXIndent(double value)
Gets and sets horizontal stamp coordinate, starting from the left.
Parameters:
| Parameter | Type | Description |
|---|---|---|
| value | double value |
setYIndent
public void setYIndent(double value)
Gets and sets vertical stamp coordinate, starting from the bottom.
Parameters:
| Parameter | Type | Description |
|---|---|---|
| value | double value |