picturewatermark-ag凯发旗舰厅
com.spire.doc
class picturewatermark
java.lang.object
com.spire.doc.ownerholder
com.spire.doc.documents.xml.documentserializable
com.spire.doc.documentobject
com.spire.doc.documentbase
com.spire.doc.fields.paragraphbase
com.spire.doc.watermarkbase
com.spire.doc.picturewatermark
- all implemented interfaces:
- irunattrsource, idocumentobject, iparagraphbase
public class picturewatermark
- extends watermarkbase
method summary |
java.awt.image.bufferedimage |
getpicture()
gets the watermark picture. |
float |
getscaling()
gets picture scaling in percents. |
boolean |
iswashout()
gets washout property for picture watermark. |
void |
iswashout(boolean value)
sets washout property for picture watermark. |
void |
setpicture(java.io.inputstream inputstream)
sets the watermark picture. |
void |
setpicture(java.lang.string filepath)
sets the watermark picture. |
void |
setscaling(float value)
sets picture scaling in percents. |
picturewatermark
public picturewatermark()
- initializes a new instance of the
picturewatermark
class.
picturewatermark
public picturewatermark(java.lang.string filename,
boolean washout)
- initializes a new instance of the
picturewatermark
class.
- parameters:
filename
- filename for picture watermarkwashout
- is washout property
picturewatermark
public picturewatermark(java.io.inputstream stream,
boolean washout)
- initializes a new instance of the
picturewatermark
class.
- parameters:
stream
- the stream for picture watermark.washout
- is washout property
getscaling
public float getscaling()
- gets picture scaling in percents.
- returns:
- the picture scaling in percents.
setscaling
public void setscaling(float value)
- sets picture scaling in percents.
- parameters:
value
- the picture scaling in percents.
iswashout
public boolean iswashout()
- gets washout property for picture watermark.
- returns:
- is washout or not
iswashout
public void iswashout(boolean value)
- sets washout property for picture watermark.
- parameters:
value
- a boolean value
getpicture
public java.awt.image.bufferedimage getpicture()
- gets the watermark picture.
- returns:
- the buffered image.
setpicture
public void setpicture(java.io.inputstream inputstream)
- sets the watermark picture.
- parameters:
inputstream
- the stream of the watermark picture.
setpicture
public void setpicture(java.lang.string filepath)
- sets the watermark picture.
- parameters:
filepath
- the file path of the water picture.