|
fop 0.93 | ||||||||||
| 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| Nested Class Summary |
| Nested classes inherited from class org.apache.fop.image.FopImage |
FopImage.ImageInfo |
| Field Summary | |
protected byte[] |
bitmaps
Image data (pixels, uncompressed). |
protected int |
bitsPerPixel
Bits per pixel. |
protected java.awt.color.ColorSpace |
colorSpace
Image color space (java.awt.color.ColorSpace). |
protected double |
dpiHorizontal
Horizontal bitmap resolution (in dpi) |
protected double |
dpiVertical
Vertical bitmap resolution (in dpi) |
protected int |
height
Image height (in pixel). |
protected FopImage.ImageInfo |
imageInfo
ImageReader object (to obtain image header informations). |
protected java.io.InputStream |
inputStream
Image input stream. |
protected boolean |
invertImage
Photoshop generated CMYK JPEGs are inverted. |
protected boolean |
isTransparent
Image transparency. |
protected int |
loaded
Keeps track of what has been loaded. |
protected static org.apache.commons.logging.Log |
log
logging instance |
protected byte[] |
raw
Image data (undecoded, compressed, for image formats that can be embedded without decoding. |
protected java.awt.Color |
transparentColor
Transparent color (java.awt.Color). |
protected int |
width
Image width (in pixel). |
| Fields inherited from interface org.apache.fop.image.FopImage |
BITMAP, DIMENSIONS, ORIGINAL_DATA |
| Constructor Summary | |
AbstractFopImage(FopImage.ImageInfo info)
Constructor. |
|
| Method Summary | |
byte[] |
getBitmaps()
Return the image data (pixels, uncompressed). |
int |
getBitmapsSize()
Return the image data size (number of bytes taken up by the uncompressed pixels). |
int |
getBitsPerPixel()
Return the number of bits per pixel. |
java.awt.color.ColorSpace |
getColorSpace()
Return the image color space. |
int |
getHeight()
Returns the image height. |
double |
getHorizontalResolution()
|
java.awt.color.ICC_Profile |
getICCProfile()
Get ICC profile for this image. |
int |
getIntrinsicHeight()
|
int |
getIntrinsicWidth()
|
java.lang.String |
getMimeType()
Get the mime type for this image. |
java.lang.String |
getOriginalURI()
|
byte[] |
getRessourceBytes()
Return the original image data (compressed). |
int |
getRessourceBytesSize()
Return the original image data size (compressed). |
byte[] |
getSoftMask()
Get the soft mask. |
java.awt.Color |
getTransparentColor()
Return the transparent color. |
double |
getVerticalResolution()
|
int |
getWidth()
Returns the image width. |
boolean |
hasSoftMask()
Check if this image has a soft mask. |
boolean |
isInverted()
|
boolean |
isTransparent()
Return the image transparency. |
boolean |
load(int type)
Load image data and initialize its properties. |
protected boolean |
loadBitmap()
Load a bitmap array of the image. |
protected boolean |
loadDefaultOriginalData()
Load the original image data. |
protected boolean |
loadDimensions()
Load the dimensions of the image. |
protected boolean |
loadOriginalData()
Load the original image data. |
| Methods inherited from class java.lang.Object |
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
| Field Detail |
protected static org.apache.commons.logging.Log log
protected int loaded
protected int width
protected int height
protected double dpiHorizontal
protected double dpiVertical
protected java.io.InputStream inputStream
protected FopImage.ImageInfo imageInfo
protected java.awt.color.ColorSpace colorSpace
protected int bitsPerPixel
protected byte[] bitmaps
protected byte[] raw
protected boolean isTransparent
protected java.awt.Color transparentColor
protected boolean invertImage
| Constructor Detail |
public AbstractFopImage(FopImage.ImageInfo info)
info - image information| Method Detail |
public java.lang.String getMimeType()
getMimeType in interface FopImagepublic java.lang.String getOriginalURI()
getOriginalURI in interface FopImageFopImage.getOriginalURI()public boolean load(int type)
load in interface FopImagetype - the type of loading to do
protected boolean loadDimensions()
protected boolean loadBitmap()
protected boolean loadOriginalData()
protected boolean loadDefaultOriginalData()
public int getWidth()
FopImage
getWidth in interface FopImagepublic int getHeight()
FopImage
getHeight in interface FopImagepublic int getIntrinsicWidth()
getIntrinsicWidth in interface FopImageFopImage.getIntrinsicWidth()public int getIntrinsicHeight()
getIntrinsicHeight in interface FopImageFopImage.getIntrinsicHeight()public double getHorizontalResolution()
getHorizontalResolution in interface FopImageFopImage.getHorizontalResolution()public double getVerticalResolution()
getVerticalResolution in interface FopImageFopImage.getVerticalResolution()public java.awt.color.ColorSpace getColorSpace()
getColorSpace in interface FopImagepublic java.awt.color.ICC_Profile getICCProfile()
getICCProfile in interface FopImagepublic int getBitsPerPixel()
getBitsPerPixel in interface FopImagepublic boolean isTransparent()
isTransparent in interface FopImagepublic boolean hasSoftMask()
hasSoftMask in interface FopImagepublic byte[] getSoftMask()
getSoftMask in interface FopImagepublic java.awt.Color getTransparentColor()
getTransparentColor in interface FopImagepublic boolean isInverted()
isInverted in interface FopImagepublic byte[] getBitmaps()
getBitmaps in interface FopImagepublic int getBitmapsSize()
getBitmapsSize in interface FopImagepublic byte[] getRessourceBytes()
getRessourceBytes in interface FopImagepublic int getRessourceBytesSize()
getRessourceBytesSize in interface FopImage
|
fop 0.93 | ||||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | ||||||||||