|
|||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | ||||||||
public interface IPicture
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 |
|---|
float getHeight()
void setHeight(float value)
value - The value is measured in points.float getWidth()
void setWidth(float value)
value - The value is measured in points.float getHeightScale()
void setHeightScale(float value)
value - floatfloat getWidthScale()
void setWidthScale(float value)
value - floatvoid loadImage(java.io.InputStream inputStream)
inputStream - the image input streamvoid loadImage(java.lang.String filePath)
filePath - the image file pathjava.awt.image.BufferedImage getImage()
void loadImage(byte[] imageBytes)
imageBytes - imageBytesbyte[] getImageBytes()
IParagraph addCaption(java.lang.String name,
CaptionNumberingFormat format,
CaptionPosition captionPosition)
name - nameformat - formatcaptionPosition - captionPosition
HorizontalOrigin getHorizontalOrigin()
void setHorizontalOrigin(HorizontalOrigin value)
value - HorizontalOriginVerticalOrigin getVerticalOrigin()
void setVerticalOrigin(VerticalOrigin value)
value - VerticalOriginfloat getHorizontalPosition()
void setHorizontalPosition(float value)
value - the value is measured in points and the position is relative to HorizontalOrigin.float getVerticalPosition()
void setVerticalPosition(float value)
value - the value is measured in points and the position is relative to VerticalOrigin.TextWrappingStyle getTextWrappingStyle()
void setTextWrappingStyle(TextWrappingStyle value)
value - TextWrappingStyleTextWrappingType getTextWrappingType()
void setTextWrappingType(TextWrappingType value)
value - TextWrappingTypeShapeHorizontalAlignment getHorizontalAlignment()
void setHorizontalAlignment(ShapeHorizontalAlignment value)
value - ShapeHorizontalAlignmentShapeVerticalAlignment getVerticalAlignment()
void setVerticalAlignment(ShapeVerticalAlignment value)
value - ShapeVerticalAlignmentjava.lang.String getAlternativeText()
void setAlternativeText(java.lang.String value)
value - the alternative text.java.lang.String getTitle()
void setTitle(java.lang.String value)
value - the title textboolean isUnderText()
void isUnderText(boolean value)
|
|||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | ||||||||