public final class ImageStamp extends Stamp
Represents a graphic stamp.
Constructor and Description |
---|
ImageStamp(InputStream image)
Initializes a new instance of the
ImageStamp class. |
ImageStamp(String fileName)
Creates image stamp by image in the specified file.
|
Modifier and Type | Method and Description |
---|---|
void |
close()
Closes this instance
|
String |
getAlternativeText()
Gets Alternative Text for image stamp.
|
double |
getHeight()
Gets image height.
|
InputStream |
getImage()
Gets image stream used for stamping.
|
int |
getQuality()
Gets quality of image stamp in percent.
|
double |
getWidth()
Gets image width.
|
double |
getXIndent()
Gets and sets horizontal stamp coordinate, starting from the left.
|
double |
getYIndent()
Gets and sets vertical stamp coordinate, starting from the bottom.
|
void |
put(Page page)
Adds graphic stamp on the page.
|
void |
setAlternativeText(String value)
Sets Alternative Text for image stamp.
|
void |
setHeight(double value)
Sets image height.
|
void |
setQuality(int value)
Sets quality of image stamp in percent.
|
void |
setWidth(double value)
Sets image width.
|
void |
setXIndent(double value)
Gets and sets horizontal stamp coordinate, starting from the left.
|
void |
setYIndent(double value)
Gets and sets vertical stamp coordinate, starting from the bottom.
|
getBottomMargin, getHorizontalAlignment, getLeftMargin, getOpacity, getOutlineOpacity, getOutlineWidth, getRightMargin, getRotate, getRotateAngle, getStampId, getTopMargin, getVerticalAlignment, getZoom, getZoomX, getZoomY, isBackground, setBackground, setBottomMargin, setHorizontalAlignment, setLeftMargin, setOpacity, setOutlineOpacity, setOutlineWidth, setRightMargin, setRotate, setRotateAngle, setStampId, setTopMargin, setVerticalAlignment, setZoom, setZoomX, setZoomY
public ImageStamp(InputStream image)
Initializes a new instance of the ImageStamp
class.
image
- Stream which contains image data.public ImageStamp(String fileName)
Creates image stamp by image in the specified file.
fileName
- Name of the file which contains image.public InputStream getImage()
Gets image stream used for stamping.
public double getWidth()
Gets image width. Setting this property allos to scal image horizontally.
public void setWidth(double value)
Sets image width. Setting this property allos to scal image horizontally.
public double getHeight()
Gets image height. Setting this image allows to scale image vertically.
public void setHeight(double value)
Sets image height. Setting this image allows to scale image vertically.
public double getXIndent()
Gets and sets horizontal stamp coordinate, starting from the left.
getXIndent
in class Stamp
public void setXIndent(double value)
Gets and sets horizontal stamp coordinate, starting from the left.
setXIndent
in class Stamp
value
- double valuepublic double getYIndent()
Gets and sets vertical stamp coordinate, starting from the bottom.
getYIndent
in class Stamp
public void setYIndent(double value)
Gets and sets vertical stamp coordinate, starting from the bottom.
setYIndent
in class Stamp
value
- double valuepublic int getQuality()
Gets quality of image stamp in percent. Valid values are 0..100%.
public void setQuality(int value)
Sets quality of image stamp in percent. Valid values are 0..100%.
value
- int valuepublic final String getAlternativeText()
Gets Alternative Text for image stamp.
public final void setAlternativeText(String value)
Sets Alternative Text for image stamp.
value
- String valuepublic void put(Page page)
Adds graphic stamp on the page.
public void close()
Copyright © 2025 Aspose. All Rights Reserved.