public final class ImageStamp extends Stamp
Reresents graphic stamp.
Constructor and Description |
---|
ImageStamp(InputStream image) |
ImageStamp(com.aspose.ms.System.IO.Stream 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() |
double |
getHeight()
Gets image height.
|
InputStream |
getImage() |
double |
getWidth()
Gets image width.
|
void |
put(Page page)
Adds graphic stamp on the page.
|
void |
setHeight(double value) |
void |
setWidth(double value)
Sets image width.
|
getBackground, getBottomMargin, getHorizontalAlignment, getLeftMargin, getOpacity, getRightMargin, getRotate, getRotateAngle, getStampId, getTopMargin, getVerticalAlignment, getXIndent, getYIndent, getZoom, getZoomX, getZoomY, setBackground, setBottomMargin, setHorizontalAlignment, setLeftMargin, setOpacity, setRightMargin, setRotate, setRotateAngle, setStampId, setTopMargin, setVerticalAlignment, setXIndent, setYIndent, setZoom, setZoomX, setZoomY
public ImageStamp(com.aspose.ms.System.IO.Stream image)
Initializes a new instance of the ImageStamp
class.
image
- Stream which contains image data.public ImageStamp(InputStream image)
public ImageStamp(String fileName)
Creates image stamp by image in the specified file.
fileName
- public InputStream getImage()
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 put(Page page)
Adds graphic stamp on the page.
public void close()
Copyright © 2017 Aspose. All Rights Reserved.