|
ElegantJ PDF Library Java API Specification v1.1 | |||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | |||||||||
java.lang.Objectcom.elegantj.pdf.PDFObject
com.elegantj.pdf.PDFGraphicsObject
com.elegantj.pdf.PDFImage
This class represents PDF Image Object Use JPEG format images to insert into a PDF document This PDFImage object supports only JPEG image format
| Field Summary | |
static java.lang.String |
DEVICE_GRAY_COLOR_SPACE
|
static java.lang.String |
DEVICE_RGB_COLOR_SPACE
|
| Fields inherited from class com.elegantj.pdf.PDFGraphicsObject |
BEVEL_JOINS, BUTT_CAPS, MITER_JOINS, ROUND_CAPS, ROUND_JOINS, SQUARE_CAPS |
| Constructor Summary | |
PDFImage(java.awt.Image image)
Constructs the PDFImage from the awt image object |
|
PDFImage(java.net.URL imageURL)
Constructs a PDF Image object using specified image file url |
|
| Method Summary | |
java.lang.Object |
clone()
Returns the clone of this object |
int |
getActualImageHeight()
Method which returns the actual image height of the specified image |
int |
getActualImageWidth()
Method which returns the actual image width of the specified image |
java.lang.String |
getColorSpace()
Returns the color space for image |
com.elegantj.pdf.PDFImage.PDFDrawImage |
getDrawImage()
Method which returns the PDFDrawImage object which can be used to draw this image object |
int |
getImageHeight()
Returns the image height |
int |
getImageWidth()
Returns the image width |
int |
getImageX()
Method which Returns the display X-coordinate of the image |
int |
getImageY()
Method which Returns the display Y-coordinate of the image |
java.lang.String |
getName()
Method which returns the referenced name of this image object |
void |
setColorSpace(java.lang.String colorSpace)
Sets the color space for image |
void |
setImageHeight(int hh)
Method which sets the display height of the image |
void |
setImageWidth(int ww)
Method which sets the display width of the image |
void |
setImageX(int n)
Method which sets the display X-coordinate of the image |
void |
setImageY(int n)
Method which sets the display Y-coordinate of the image |
| Methods inherited from class com.elegantj.pdf.PDFObject |
getPDFObjectID, getPDFObjectRefStr, getPDFObjectType, setPDFObjectID, setPDFObjectType |
| Methods inherited from class java.lang.Object |
equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
| Field Detail |
public static java.lang.String DEVICE_RGB_COLOR_SPACE
public static java.lang.String DEVICE_GRAY_COLOR_SPACE
| Constructor Detail |
public PDFImage(java.net.URL imageURL)
imageURL - The url of the image file in JPEG formatpublic PDFImage(java.awt.Image image)
image - The image object, only JPEG image object allowed| Method Detail |
public java.lang.String getName()
public com.elegantj.pdf.PDFImage.PDFDrawImage getDrawImage()
public void setImageWidth(int ww)
ww - The display width of the imagepublic int getImageWidth()
public void setImageHeight(int hh)
hh - The display height of the imagepublic int getImageHeight()
public void setImageX(int n)
n - The display X-coordinate of the imagepublic int getImageX()
public void setImageY(int n)
n - The display Y-coordinate of the imagepublic int getImageY()
public int getActualImageWidth()
public int getActualImageHeight()
public java.lang.Object clone()
public void setColorSpace(java.lang.String colorSpace)
colorSpace - The color space
Possible values are DEVICE_RGB_COLOR_SPACE and DEVICE_GRAY_COLOR_SPACEpublic java.lang.String getColorSpace()
|
ElegantJ PDF Library Java API Specification v1.1 | |||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | |||||||||