|
fop 0.94 | |||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |
java.lang.Objectorg.apache.fop.image.AbstractFopImage
public abstract class AbstractFopImage
Base class to implement the FopImage interface.
FopImage
Nested Class Summary |
---|
Nested classes/interfaces inherited from interface 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. |
Length |
getIntrinsicAlignmentAdjust()
|
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 informationMethod Detail |
---|
public java.lang.String getMimeType()
getMimeType
in interface FopImage
public java.lang.String getOriginalURI()
getOriginalURI
in interface FopImage
FopImage.getOriginalURI()
public boolean load(int type)
load
in interface FopImage
type
- 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 FopImage
public int getHeight()
FopImage
getHeight
in interface FopImage
public int getIntrinsicWidth()
getIntrinsicWidth
in interface FopImage
FopImage.getIntrinsicWidth()
public int getIntrinsicHeight()
getIntrinsicHeight
in interface FopImage
FopImage.getIntrinsicHeight()
public Length getIntrinsicAlignmentAdjust()
getIntrinsicAlignmentAdjust
in interface FopImage
FopImage.getIntrinsicAlignmentAdjust()
public double getHorizontalResolution()
getHorizontalResolution
in interface FopImage
FopImage.getHorizontalResolution()
public double getVerticalResolution()
getVerticalResolution
in interface FopImage
FopImage.getVerticalResolution()
public java.awt.color.ColorSpace getColorSpace()
getColorSpace
in interface FopImage
public java.awt.color.ICC_Profile getICCProfile()
getICCProfile
in interface FopImage
public int getBitsPerPixel()
getBitsPerPixel
in interface FopImage
public boolean isTransparent()
isTransparent
in interface FopImage
public boolean hasSoftMask()
hasSoftMask
in interface FopImage
public byte[] getSoftMask()
getSoftMask
in interface FopImage
public java.awt.Color getTransparentColor()
getTransparentColor
in interface FopImage
public boolean isInverted()
isInverted
in interface FopImage
public byte[] getBitmaps()
getBitmaps
in interface FopImage
public int getBitmapsSize()
getBitmapsSize
in interface FopImage
public byte[] getRessourceBytes()
getRessourceBytes
in interface FopImage
public int getRessourceBytesSize()
getRessourceBytesSize
in interface FopImage
|
fop 0.94 | |||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |