![]() |
||
Home Products Purchase Downloads Demos Forums Blogs Ticket Wiki API Corporate |
|
||||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |
java.lang.Objectcom.aspose.pdf.elements.PdfElementBase
com.aspose.pdf.elements.Paragraph
com.aspose.pdf.elements.Image
Represents an image Paragraph in a Pdf document.
Constructor Summary | |
Image(Section section)
Initialize a new instance of the Image class. |
Method Summary | |
java.lang.Object |
clone()
Clone an object. |
org.w3c.dom.Element |
getDOMElement()
Gets a DOM representation of the pdf element. |
java.lang.String |
getFile()
Gets a string that indicates the image file name and its path. |
float |
getFixWidth()
Getsa float value that indicates the fixed width of the image. |
HyperLink |
getHyperLink()
Gets a Hyperlink object that indicates the hyper link info of the image. |
int |
getImageAlignment()
Gets an Alignment Type that indicates the image alignment type. |
float |
getImageHeight()
Gets a float value that indicates the image height.This property is not used to control the image height but used to spefity the image width when there is no height info in image,e.g., image on the web. |
float |
getImageWidth()
Gets a float value that indicates the image width. |
void |
setFile(java.lang.String file)
Sets a string that indicates the image file name and its path. |
void |
setFixWidth(float width)
Sets a float value that indicates the fixed width of the image. |
void |
setHyperLink(HyperLink link)
Sets a Hyperlink object that indicates the hyper link info of the image. |
void |
setImageAlignment(int alignment)
Sets an Alignment Type that indicates the image alignment type. |
void |
setImageHeight(float height)
Sets a float value that indicates the image height.This property is not used to control the image height but used to spefity the image width when there is no height info in image,e.g., image on the web. |
void |
setImageWidth(float width)
Sets a float value that indicates the image width. |
Methods inherited from class com.aspose.pdf.elements.Paragraph |
getMargin, isDisabled, isFirstParagraph, isKeptTogether, isOnOddPage, setDisabled, setFirstParagraph, setKeptTogether, setMargin, setOnOddPage |
Methods inherited from class com.aspose.pdf.elements.PdfElementBase |
getElementFactory, getID, getNameIndex, setID |
Methods inherited from class java.lang.Object |
equals, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
Constructor Detail |
public Image(Section section)
[SampleCode] Pdf pdf = new Pdf(); Section sec1 = pdf.getSections().add(); Image img = new Image(sec1); img.setFile("http://www.aspose.com/images/banner-top-mid.gif"); sec1.getParagraphs().add(img);
section
- The section that owns the Iamge paragraph.Method Detail |
public java.lang.Object clone() throws java.lang.CloneNotSupportedException
PdfElementBase
clone
in class Paragraph
java.lang.CloneNotSupportedException
java.lang.Object#clone()
public java.lang.String getFile()
public void setFile(java.lang.String file)
file
- The file name to set.public float getFixWidth()
public void setFixWidth(float width)
width
- The fix Width to set.public int getImageAlignment()
AlignmentType
public void setImageAlignment(int alignment)
AlignmentType
public HyperLink getHyperLink()
public void setHyperLink(HyperLink link) throws java.lang.CloneNotSupportedException
java.lang.CloneNotSupportedException
HyperLink
public float getImageHeight()
public void setImageHeight(float height)
height
- The height to set.public float getImageWidth()
public void setImageWidth(float width)
width
- The width to set.public org.w3c.dom.Element getDOMElement() throws AsposeBaseException
PdfElementBase
getDOMElement
in class Paragraph
AsposeBaseException
PdfElementBase.getDOMElement()
|
||||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |