|
|||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||
SUMMARY: INNER | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |
java.lang.Object | +--org.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 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_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 |
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 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
Constructor Detail |
public AbstractFopImage(java.net.URL href) throws FopImageException
href
- image URLpublic AbstractFopImage(java.net.URL href, ImageReader imgReader) throws FopImageException
href
- image URL
imgReader ImageReader objectMethod Detail |
protected abstract void loadImage() throws FopImageException
public java.lang.String getURL()
public int getWidth() throws FopImageException
public int getHeight() throws FopImageException
public ColorSpace getColorSpace() throws FopImageException
public int getBitsPerPixel() throws FopImageException
public boolean isTransparent() throws FopImageException
public PDFColor getTransparentColor() throws FopImageException
public byte[] getBitmaps() throws FopImageException
public int getBitmapsSize() throws FopImageException
public byte[] getRessourceBytes() throws FopImageException
public int getRessourceBytesSize() throws FopImageException
public PDFFilter getPDFFilter() throws FopImageException
public void close()
|
|||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||
SUMMARY: INNER | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |