|
||||||||||
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. |
HyperLink |
getHyperLink()
Gets a Hyperlink object that indicates the hyper link info of the image. |
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. |
ImageInfo |
getImageInfo()
Gets an ImageInfo object that indicates the common image info. |
float |
getImageScale()
Gets a float value that indicates the scale rate of the image when placed into pdf file. |
float |
getImageWidth()
Gets a float value that indicates the image width. |
void |
setHyperLink(HyperLink link)
Sets a Hyperlink object that indicates the hyper link info of the image. |
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 |
setImageInfo(ImageInfo info)
Sets an ImageInfo object that indicates the common image info. |
void |
setImageScale(float scale)
Sets a float value that indicates the scale rate of the image when placed into pdf file. |
void |
setImageWidth(float width)
Sets a float value that indicates the image width. |
Methods inherited from class com.aspose.pdf.elements.Paragraph |
getLeft, getMargin, getTop, isDisabled, isFirstParagraph, isKeptTogether, isOnOddPage, setDisabled, setFirstParagraph, setKeptTogether, setLeft, setMargin, setOnOddPage, setTop |
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 HyperLink getHyperLink()
public void setHyperLink(HyperLink link) throws java.lang.CloneNotSupportedException
java.lang.CloneNotSupportedException
HyperLink
public ImageInfo getImageInfo()
ImageInfo.
public void setImageInfo(ImageInfo info)
info
- The ImageInfo to set.ImageInfo.
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 float getImageScale()
public void setImageScale(float scale)
scale
- The image Scale 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 |