picturewatermark-ag凯发旗舰厅



com.spire.doc
class picturewatermark

java.lang.object
  extended by com.spire.doc.ownerholder
      extended by com.spire.doc.documents.xml.documentserializable
          extended by com.spire.doc.documentobject
              extended by com.spire.doc.documentbase
                  extended by com.spire.doc.fields.paragraphbase
                      extended by com.spire.doc.watermarkbase
                          extended by com.spire.doc.picturewatermark
all implemented interfaces:
irunattrsource, idocumentobject, iparagraphbase

public class picturewatermark
extends watermarkbase

constructor summary
picturewatermark()
          initializes a new instance of the picturewatermark class.
picturewatermark(java.io.inputstream stream, boolean washout)
          initializes a new instance of the picturewatermark class.
picturewatermark(java.lang.string filename, boolean washout)
          initializes a new instance of the picturewatermark class.
 
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.
 
methods inherited from class com.spire.doc.watermarkbase
getdocumentobjecttype, gettype
 
methods inherited from class com.spire.doc.fields.paragraphbase
applycharacterformat, applystyle, getancestor, getcharacterformat, getchildobjects, getownerparagraph, getstylename, isdeleterevision, isinsertrevision
 
methods inherited from class com.spire.doc.documentobject
deepclone, getfirstchild, getlastchild, getnextsibling, getowner, getprevioussibling, iscomposite, tostring
 
methods inherited from class com.spire.doc.ownerholder
getdocument
 
methods inherited from interface com.spire.doc.interfaces.idocumentobject
deepclone, getdocument, getnextsibling, getowner, getprevioussibling, iscomposite
 
methods inherited from interface com.spire.doc.documents.irunattrsource
clearrunattrs, fetchinheritedrunattr, getdirectrunattr, getdirectrunattrbyindex, getdirectrunattrscount, setrunattr
 
constructor detail

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 watermark
washout - 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
method detail

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.


网站地图