|
|||||||||
prev class next class | frames no frames | ||||||||
summary: nested | field | constr | method | detail: field | constr | method |
java.lang.objectcom.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.fields.shape.shapebase
com.spire.doc.fields.shapeobject
com.spire.doc.fields.docpicture
public class docpicture
constructor summary | |
---|---|
docpicture(idocument doc)
initializes a new instance of the docpicture class. |
method summary | |
---|---|
iparagraph |
addcaption(java.lang.string name,
captionnumberingformat format,
captionposition captionposition)
add caption for current picture. |
java.lang.string |
getalternativetext()
gets the alternative text. |
boolean |
getbilevel()
gets whether an image will be displayed in black and white. |
float |
getbrightness()
gets picture brightness. |
characterformat |
getcharacterformat()
gets shape object's character format. |
picturecolor |
getcolor()
get picture color. |
float |
getcontrast()
get picture contrast. |
documentobjecttype |
getdocumentobjecttype()
gets the type of the document object. |
boolean |
getgrayscale()
gets whether a picture will display in grayscale mode. |
float |
getheight()
returns picture height. |
float |
getheightscale()
returns picture height scale factor in percent. |
shapehorizontalalignment |
gethorizontalalignment()
returns picture horizontal alignment. |
horizontalorigin |
gethorizontalorigin()
gets horizontal origin of the picture. |
float |
gethorizontalposition()
gets absolute horizontal position of the picture. |
java.awt.image.bufferedimage |
getimage()
gets internal image object. |
byte[] |
getimagebytes()
gets image byte array. |
boolean |
getlayoutincell()
gets the boolean value that represents whether a picture in a table is displayed inside or outside the table. |
float |
getrotationex()
gets the rotation of docpicture.specifies the rotation of the graphic frame. |
textwrappingstyle |
gettextwrappingstyle()
gets text wrapping style of the picture. |
textwrappingtype |
gettextwrappingtype()
gets text wrapping type of the picture. |
java.lang.string |
gettitle()
gets the picture title. |
java.awt.color |
gettransparentcolor()
gets transparent color |
shapeverticalalignment |
getverticalalignment()
returns picture vertical alignment. |
verticalorigin |
getverticalorigin()
gets absolute horizontal position of the picture. |
float |
getverticalposition()
gets absolute vertical position of the picture. |
float |
getwidth()
returns picture width. |
float |
getwidthscale()
returns picture width scale factor in percent. |
boolean |
iscrop()
gets whether the picture object is cropped. |
boolean |
isundertext()
gets whether picture is below image. |
void |
isundertext(boolean value)
sets whether picture is below image. |
void |
loadimage(byte[] imagebytes)
loads image as bytes array. |
void |
loadimage(java.io.inputstream inputstream)
loads image. |
void |
loadimage(java.lang.string filepath)
loads image. |
void |
replaceimage(byte[] imagebytes,
boolean biskeepration)
replaces the image. |
void |
setalternativetext(java.lang.string value)
sets the alternative text. |
void |
setbilevel(boolean value)
sets whether an image will be displayed in black and white. |
void |
setbrightness(float value)
sets picture brightness. |
void |
setcolor(picturecolor value)
set picture color. |
void |
setcontrast(float value)
set picture contrast. |
void |
setgrayscale(boolean value)
sets whether a picture will display in grayscale mode. |
void |
setheight(float value)
sets picture height. |
void |
setheightscale(float value)
sets picture height scale factor in percent. |
void |
sethorizontalalignment(shapehorizontalalignment value)
sets picture horizontal alignment. |
void |
sethorizontalorigin(horizontalorigin value)
sets horizontal origin of the picture. |
void |
sethorizontalposition(float value)
sets absolute horizontal position of the picture. |
void |
setlayoutincell(boolean value)
sets the boolean value that represents whether a picture in a table is displayed inside or outside the table. |
void |
setrotationex(float value)
sets the rotation of docpicture.specifies the rotation of the graphic frame. |
void |
settextwrappingstyle(textwrappingstyle value)
sets text wrapping style of the picture. |
void |
settextwrappingtype(textwrappingtype value)
sets text wrapping type of the picture. |
void |
settitle(java.lang.string value)
sets the picture title. |
void |
settransparentcolor(java.awt.color value)
sets transparent color |
void |
setverticalalignment(shapeverticalalignment value)
sets picture vertical alignment. |
void |
setverticalorigin(verticalorigin value)
sets absolute horizontal position of the picture. |
void |
setverticalposition(float value)
sets absolute vertical position of the picture. |
void |
setwidth(float value)
sets picture width. |
void |
setwidthscale(float value)
sets picture width scale factor in percent. |
methods inherited from class com.spire.doc.fields.shapeobject |
---|
getchildobjects, getfillcolor, getlinestyle, getstrokecolor, getstrokeweight, getwordart, hasimage, setfillcolor, setlinestyle, setstrokecolor, setstrokeweight |
methods inherited from class com.spire.doc.fields.shape.shapebase |
---|
getallowoverlap, getbehindtext, getbottom, getdistancebottom, getdistanceleft, getdistanceright, getdistancetop, getparentparagraph, getright, getrotation, getshapetype, getzorder, haskey, isimage, localtoparent, removeshapeattribute, setallowoverlap, setbehindtext, setdistancebottom, setdistanceleft, setdistanceright, setdistancetop, setrotation, setshapeattr, setshapeattribute, setshapetype, setzorder |
methods inherited from class com.spire.doc.fields.paragraphbase |
---|
applycharacterformat, applystyle, getancestor, 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.iparagraphbase |
---|
applystyle, getownerparagraph, getstylename |
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 |
---|
public docpicture(idocument doc)
docpicture
class.
doc
- the doc.method detail |
---|
public float getrotationex()
public void setrotationex(float value)
value
- floatpublic documentobjecttype getdocumentobjecttype()
getdocumentobjecttype
in interface idocumentobject
getdocumentobjecttype
in class shapeobject
public float getheight()
getheight
in interface ipicture
getheight
in class shapebase
public void setheight(float value)
setheight
in interface ipicture
setheight
in class shapebase
value
- the value is measured in points.public float getwidth()
getwidth
in interface ipicture
getwidth
in class shapebase
public void setwidth(float value)
setwidth
in interface ipicture
setwidth
in class shapebase
value
- the value is measured in points.public float getheightscale()
getheightscale
in interface ipicture
public void setheightscale(float value)
setheightscale
in interface ipicture
value
- floatpublic float getwidthscale()
getwidthscale
in interface ipicture
public void setwidthscale(float value)
setwidthscale
in interface ipicture
value
- floatpublic java.awt.image.bufferedimage getimage()
getimage
in interface ipicture
public byte[] getimagebytes()
getimagebytes
in interface ipicture
public boolean getgrayscale()
public void setgrayscale(boolean value)
value
- booleanpublic boolean getbilevel()
public void setbilevel(boolean value)
value
- booleanpublic float getbrightness()
public void setbrightness(float value)
value
- floatpublic float getcontrast()
public void setcontrast(float value)
value
- floatpublic picturecolor getcolor()
public void setcolor(picturecolor value)
value
- picturecolorpublic java.awt.color gettransparentcolor()
public void settransparentcolor(java.awt.color value)
value
- colorpublic boolean iscrop()
public horizontalorigin gethorizontalorigin()
gethorizontalorigin
in interface ipicture
gethorizontalorigin
in class shapebase
public void sethorizontalorigin(horizontalorigin value)
sethorizontalorigin
in interface ipicture
sethorizontalorigin
in class shapebase
value
- horizontaloriginpublic verticalorigin getverticalorigin()
getverticalorigin
in interface ipicture
getverticalorigin
in class shapebase
public void setverticalorigin(verticalorigin value)
setverticalorigin
in interface ipicture
setverticalorigin
in class shapebase
value
- verticaloriginpublic float gethorizontalposition()
gethorizontalposition
in interface ipicture
gethorizontalposition
in class shapebase
public void sethorizontalposition(float value)
sethorizontalposition
in interface ipicture
sethorizontalposition
in class shapebase
value
- the value is measured in points and the position is relative to horizontalorigin.public float getverticalposition()
getverticalposition
in interface ipicture
getverticalposition
in class shapebase
public void setverticalposition(float value)
setverticalposition
in interface ipicture
setverticalposition
in class shapebase
value
- the value is measured in points and the position is relative to verticalorigin.public textwrappingstyle gettextwrappingstyle()
gettextwrappingstyle
in interface ipicture
gettextwrappingstyle
in class shapebase
public void settextwrappingstyle(textwrappingstyle value)
settextwrappingstyle
in interface ipicture
settextwrappingstyle
in class shapebase
value
- textwrappingstylepublic textwrappingtype gettextwrappingtype()
gettextwrappingtype
in interface ipicture
gettextwrappingtype
in class shapebase
public void settextwrappingtype(textwrappingtype value)
settextwrappingtype
in interface ipicture
settextwrappingtype
in class shapebase
value
- textwrappingtypepublic shapehorizontalalignment gethorizontalalignment()
if it is set as none, then the picture is explicitly positioned using position properties. otherwise it is positioned according to the alignment specified. the position of the object is relative to horizontalorigin.
gethorizontalalignment
in interface ipicture
gethorizontalalignment
in class shapebase
public void sethorizontalalignment(shapehorizontalalignment value)
sethorizontalalignment
in interface ipicture
sethorizontalalignment
in class shapebase
value
- if it is set as none, then the picture is explicitly positioned using position properties.
otherwise it is positioned according to the alignment specified. the position of the object is relative to horizontalorigin.public shapeverticalalignment getverticalalignment()
getverticalalignment
in interface ipicture
getverticalalignment
in class shapebase
public void setverticalalignment(shapeverticalalignment value)
setverticalalignment
in interface ipicture
setverticalalignment
in class shapebase
value
- if it is set as none, then the picture is explicitly positioned using position properties. otherwise it is positioned according to the alignment specified. the position of the object is relative to verticalorigin.public boolean isundertext()
isundertext
in interface ipicture
public void isundertext(boolean value)
isundertext
in interface ipicture
value
- booleanpublic characterformat getcharacterformat()
getcharacterformat
in class shapeobject
public java.lang.string getalternativetext()
getalternativetext
in interface ipicture
getalternativetext
in class shapebase
public void setalternativetext(java.lang.string value)
setalternativetext
in interface ipicture
setalternativetext
in class shapebase
value
- the alternative text.public java.lang.string gettitle()
gettitle
in interface ipicture
public void settitle(java.lang.string value)
settitle
in interface ipicture
value
- the title textpublic boolean getlayoutincell()
public void setlayoutincell(boolean value)
value
- booleanpublic void loadimage(java.io.inputstream inputstream)
loadimage
in interface ipicture
inputstream
- the image input streampublic void loadimage(java.lang.string filepath)
loadimage
in interface ipicture
filepath
- the image file pathpublic void loadimage(byte[] imagebytes)
loadimage
in interface ipicture
imagebytes
- byte[]public void replaceimage(byte[] imagebytes, boolean biskeepration)
imagebytes
- the image bytes.biskeepration
- booleanpublic iparagraph addcaption(java.lang.string name, captionnumberingformat format, captionposition captionposition)
addcaption
in interface ipicture
name
- nameformat
- formatcaptionposition
- captionposition
|
|||||||||
prev class next class | frames no frames | ||||||||
summary: nested | field | constr | method | detail: field | constr | method |