|
|||||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |
java.lang.Objectorg.apache.fop.image.AbstractFopImage
Base class to implement the FopImage interface.
FopImage
Field Summary | |
protected byte[] |
m_bitmaps
Image data (uncompressed). |
protected int |
m_bitmapsSize
Image data size. |
protected int |
m_bitsPerPixel
Bits per pixel. |
protected ColorSpace |
m_colorSpace
Image color space (org.apache.fop.datatypes.ColorSpace). |
protected PDFFilter |
m_compressionType
Image compression type. |
protected int |
m_height
Image height (in pixel). |
protected URL |
m_href
Image URL. |
protected ImageReader |
m_imageReader
ImageReader object (to obtain image header informations). |
protected boolean |
m_invertImage
Photoshop generated cmykl jpeg's are inverted. |
protected boolean |
m_isTransparent
Image transparency. |
protected PDFColor |
m_transparentColor
Transparent color (org.apache.fop.pdf.PDFColor). |
protected int |
m_width
Image width (in pixel). |
Constructor Summary | |
AbstractFopImage(URL href)
Constructor. |
|
AbstractFopImage(URL href,
ImageReader imgReader)
Constructor. |
Method Summary | |
void |
close()
Free all ressource. |
byte[] |
getBitmaps()
Return the image data (uncompressed). |
int |
getBitmapsSize()
Return the image data size (uncompressed). |
int |
getBitsPerPixel()
Return the number of bits per pixel. |
ColorSpace |
getColorSpace()
Return the image color space. |
int |
getHeight()
Return the image height. |
PDFFilter |
getPDFFilter()
Return the original image compression type. |
byte[] |
getRessourceBytes()
Return the original image data (compressed). |
int |
getRessourceBytesSize()
Return the original image data size (compressed). |
PDFColor |
getTransparentColor()
Return the transparent color. |
String |
getURL()
Return the image URL. |
int |
getWidth()
Return the image width. |
boolean |
invertImage()
If true, image data are inverted |
boolean |
isTransparent()
Return the image transparency. |
protected abstract void |
loadImage()
Load image data and initialize its properties. |
Methods inherited from class java.lang.Object |
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
Field Detail |
protected boolean m_invertImage
protected int m_width
protected int m_height
protected URL m_href
protected ImageReader m_imageReader
protected ColorSpace m_colorSpace
protected int m_bitsPerPixel
protected byte[] m_bitmaps
protected int m_bitmapsSize
protected boolean m_isTransparent
protected PDFColor m_transparentColor
protected PDFFilter m_compressionType
Constructor Detail |
public AbstractFopImage(URL href) throws FopImageException
href
- image URL
FopImageException
- an error occured during initializationpublic AbstractFopImage(URL href, ImageReader imgReader) throws FopImageException
href
- image URL
imgReader ImageReader object
FopImageException
- an error occured during initializationMethod Detail |
protected abstract void loadImage() throws FopImageException
FopImageException
- an error occured during loadingpublic boolean invertImage()
invertImage
in interface FopImage
public String getURL()
getURL
in interface FopImage
public int getWidth() throws FopImageException
getWidth
in interface FopImage
FopImageException
- an error occured during property retriavalpublic int getHeight() throws FopImageException
getHeight
in interface FopImage
FopImageException
- an error occured during property retriavalpublic ColorSpace getColorSpace() throws FopImageException
getColorSpace
in interface FopImage
FopImageException
- an error occured during property retriavalpublic int getBitsPerPixel() throws FopImageException
getBitsPerPixel
in interface FopImage
FopImageException
- an error occured during property retriavalpublic boolean isTransparent() throws FopImageException
isTransparent
in interface FopImage
FopImageException
- an error occured during property retriavalpublic PDFColor getTransparentColor() throws FopImageException
getTransparentColor
in interface FopImage
FopImageException
- an error occured during property retriavalpublic byte[] getBitmaps() throws FopImageException
getBitmaps
in interface FopImage
FopImageException
- an error occured during loadingpublic int getBitmapsSize() throws FopImageException
getBitmapsSize
in interface FopImage
FopImageException
- an error occured during loadingpublic byte[] getRessourceBytes() throws FopImageException
getRessourceBytes
in interface FopImage
FopImageException
- an error occured during loadingpublic int getRessourceBytesSize() throws FopImageException
getRessourceBytesSize
in interface FopImage
FopImageException
- an error occured during loadingpublic PDFFilter getPDFFilter() throws FopImageException
getPDFFilter
in interface FopImage
FopImageException
- an error occured during loadingpublic void close()
close
in interface FopImage
|
|||||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |