ipicture-ag凯发旗舰厅



com.spire.doc.interfaces
interface ipicture

all superinterfaces:
idocumentobject, iparagraphbase
all known implementing classes:
docpicture

public interface ipicture
extends iparagraphbase

represents a picture in a word document.


method summary
 iparagraph addcaption(java.lang.string name, captionnumberingformat format, captionposition captionposition)
          add caption for current picture
 java.lang.string getalternativetext()
          gets the picture's alternative text.
 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 system.drawing.image object.
 byte[] getimagebytes()
          gets image byte array.
 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's title
 shapeverticalalignment getverticalalignment()
          returns picture vertical alignment.
 verticalorigin getverticalorigin()
          gets vertical origin 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 isundertext()
           
 void isundertext(boolean value)
           
 void loadimage(byte[] imagebytes)
          loads system.drawing.image as byte array.
 void loadimage(java.io.inputstream inputstream)
          loads system.drawing.image object.
 void loadimage(java.lang.string filepath)
          loads system.drawing.image object.
 void setalternativetext(java.lang.string value)
          sets the picture's alternative text.
 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 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's title
 void setverticalalignment(shapeverticalalignment value)
          sets picture vertical alignment.
 void setverticalorigin(verticalorigin value)
          sets vertical origin 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 interface com.spire.doc.interfaces.iparagraphbase
applystyle, getownerparagraph, getstylename
 
methods inherited from interface com.spire.doc.interfaces.idocumentobject
deepclone, getdocument, getdocumentobjecttype, getnextsibling, getowner, getprevioussibling, iscomposite
 
method detail

getheight

float getheight()
returns picture height.
returns:
the value is measured in points.

setheight

void setheight(float value)
sets picture height.
parameters:
value - the value is measured in points.

getwidth

float getwidth()
returns picture width.
returns:
the value is measured in points.

setwidth

void setwidth(float value)
sets picture width.
parameters:
value - the value is measured in points.

getheightscale

float getheightscale()
returns picture height scale factor in percent.
returns:
float

setheightscale

void setheightscale(float value)
sets picture height scale factor in percent.
parameters:
value - float

getwidthscale

float getwidthscale()
returns picture width scale factor in percent.
returns:
float

setwidthscale

void setwidthscale(float value)
sets picture width scale factor in percent.
parameters:
value - float

loadimage

void loadimage(java.io.inputstream inputstream)
loads system.drawing.image object.
parameters:
inputstream - the image input stream

loadimage

void loadimage(java.lang.string filepath)
loads system.drawing.image object.
parameters:
filepath - the image file path

getimage

java.awt.image.bufferedimage getimage()
gets internal system.drawing.image object.
returns:
bufferedimage

loadimage

void loadimage(byte[] imagebytes)
loads system.drawing.image as byte array.
parameters:
imagebytes - imagebytes

getimagebytes

byte[] getimagebytes()
gets image byte array.
returns:
byte[]

addcaption

iparagraph addcaption(java.lang.string name,
                      captionnumberingformat format,
                      captionposition captionposition)
add caption for current picture
parameters:
name - name
format - format
captionposition - captionposition
returns:
iparagraph

gethorizontalorigin

horizontalorigin gethorizontalorigin()
gets horizontal origin of the picture.
returns:
horizontalorigin

sethorizontalorigin

void sethorizontalorigin(horizontalorigin value)
sets horizontal origin of the picture.
parameters:
value - horizontalorigin

getverticalorigin

verticalorigin getverticalorigin()
gets vertical origin of the picture.
returns:
verticalorigin

setverticalorigin

void setverticalorigin(verticalorigin value)
sets vertical origin of the picture.
parameters:
value - verticalorigin

gethorizontalposition

float gethorizontalposition()
gets absolute horizontal position of the picture.
returns:
the value is measured in points and the position is relative to horizontalorigin.

sethorizontalposition

void sethorizontalposition(float value)
sets absolute horizontal position of the picture.
parameters:
value - the value is measured in points and the position is relative to horizontalorigin.

getverticalposition

float getverticalposition()
gets absolute vertical position of the picture.
returns:
the value is measured in points and the position is relative to verticalorigin.

setverticalposition

void setverticalposition(float value)
sets absolute vertical position of the picture.
parameters:
value - the value is measured in points and the position is relative to verticalorigin.

gettextwrappingstyle

textwrappingstyle gettextwrappingstyle()
gets text wrapping style of the picture.
returns:
textwrappingstyle

settextwrappingstyle

void settextwrappingstyle(textwrappingstyle value)
sets text wrapping style of the picture.
parameters:
value - textwrappingstyle

gettextwrappingtype

textwrappingtype gettextwrappingtype()
gets text wrapping type of the picture.
returns:
textwrappingtype

settextwrappingtype

void settextwrappingtype(textwrappingtype value)
sets text wrapping type of the picture.
parameters:
value - textwrappingtype

gethorizontalalignment

shapehorizontalalignment gethorizontalalignment()
returns picture horizontal alignment. if it is set as none, then the object is explicitly positioned using position properties. otherwise it is positioned according to the alignment specified. the position of the object is relative to horizontalorigin.
returns:
shapehorizontalalignment

sethorizontalalignment

void sethorizontalalignment(shapehorizontalalignment value)
sets picture horizontal alignment. if it is set as none, then the object is explicitly positioned using position properties. otherwise it is positioned according to the alignment specified. the position of the object is relative to horizontalorigin.
parameters:
value - shapehorizontalalignment

getverticalalignment

shapeverticalalignment getverticalalignment()
returns picture vertical alignment. if it is set as none, then the object is explicitly positioned using position properties. otherwise it is positioned according to the alignment specified. the position of the object is relative to verticalorigin.
returns:
shapeverticalalignment

setverticalalignment

void setverticalalignment(shapeverticalalignment value)
sets picture vertical alignment. if it is set as none, then the object is explicitly positioned using position properties. otherwise it is positioned according to the alignment specified. the position of the object is relative to verticalorigin.
parameters:
value - shapeverticalalignment

getalternativetext

java.lang.string getalternativetext()
gets the picture's alternative text.
returns:
the alternative text.

setalternativetext

void setalternativetext(java.lang.string value)
sets the picture's alternative text.
parameters:
value - the alternative text.

gettitle

java.lang.string gettitle()
gets the picture's title
returns:
the title text

settitle

void settitle(java.lang.string value)
sets the picture's title
parameters:
value - the title text

isundertext

boolean isundertext()

isundertext

void isundertext(boolean value)


网站地图