|
||||||||||||
| 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 java.net.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(java.net.URL href)
Constructor. |
|
AbstractFopImage(java.net.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. |
java.lang.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 java.net.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(java.net.URL href)
throws FopImageException
href - image URL
FopImageException - an error occured during initialization
public AbstractFopImage(java.net.URL href,
ImageReader imgReader)
throws FopImageException
href - image URL
imgReader ImageReader object
FopImageException - an error occured during initialization| Method Detail |
protected abstract void loadImage()
throws FopImageException
FopImageException - an error occured during loadingpublic boolean invertImage()
invertImage in interface FopImagepublic java.lang.String getURL()
getURL in interface FopImage
public int getWidth()
throws FopImageException
getWidth in interface FopImageFopImageException - an error occured during property retriaval
public int getHeight()
throws FopImageException
getHeight in interface FopImageFopImageException - an error occured during property retriaval
public ColorSpace getColorSpace()
throws FopImageException
getColorSpace in interface FopImageFopImageException - an error occured during property retriaval
public int getBitsPerPixel()
throws FopImageException
getBitsPerPixel in interface FopImageFopImageException - an error occured during property retriaval
public boolean isTransparent()
throws FopImageException
isTransparent in interface FopImageFopImageException - an error occured during property retriaval
public PDFColor getTransparentColor()
throws FopImageException
getTransparentColor in interface FopImageFopImageException - an error occured during property retriaval
public byte[] getBitmaps()
throws FopImageException
getBitmaps in interface FopImageFopImageException - an error occured during loading
public int getBitmapsSize()
throws FopImageException
getBitmapsSize in interface FopImageFopImageException - an error occured during loading
public byte[] getRessourceBytes()
throws FopImageException
getRessourceBytes in interface FopImageFopImageException - an error occured during loading
public int getRessourceBytesSize()
throws FopImageException
getRessourceBytesSize in interface FopImageFopImageException - an error occured during loading
public PDFFilter getPDFFilter()
throws FopImageException
getPDFFilter in interface FopImageFopImageException - 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 | |||||||||||