Fop image interface for loading images.
getBitmaps
public byte[] getBitmaps()
Returns the decoded and uncompressed image as a array of
width * height * [colorspace-multiplicator] pixels.
getBitmapsSize
public int getBitmapsSize()
Returns the size of the image.
width * (bitsPerPixel / 8) * height, no ?
getBitsPerPixel
public int getBitsPerPixel()
Returns the number of bits per pixel for the image.
- the number of bits per pixel
getColorSpace
public ColorSpace getColorSpace()
Returns the color space of the image.
getHeight
public int getHeight()
Returns the image height.
getHorizontalResolution
public double getHorizontalResolution()
- the horizontal bitmap resolution (in dpi)
getICCProfile
public ICC_Profile getICCProfile()
Returns the ICC profile.
- the ICC profile, null if none is available
getIntrinsicAlignmentAdjust
public Length getIntrinsicAlignmentAdjust()
- the intrinsic alignment-adjust value or NULL if the image does
not have one.
getIntrinsicHeight
public int getIntrinsicHeight()
- the intrinsic image width (in millipoints)
getIntrinsicWidth
public int getIntrinsicWidth()
- the intrinsic image width (in millipoints)
getMimeType
public String getMimeType()
Get the mime type of this image.
This is used so that when reading from the image it knows
what type of image it is.
getOriginalURI
public String getOriginalURI()
- the original URI used to access this image.
getRessourceBytes
public byte[] getRessourceBytes()
Returns the encoded/compressed image as an array of bytes.
getRessourceBytesSize
public int getRessourceBytesSize()
Returns the number of bytes of the raw image.
getSoftMask
public byte[] getSoftMask()
For images with a Soft Mask. Returns the Soft Mask as an array.
getTransparentColor
public Color getTransparentColor()
For transparent images. Returns the transparent color.
getVerticalResolution
public double getVerticalResolution()
- the vertical bitmap resolution (in dpi)
getWidth
public int getWidth()
Returns the image width.
hasSoftMask
public boolean hasSoftMask()
Indicates whether the image has a Soft Mask (See section 7.5.4 in the
PDF specs)
- True if a Soft Mask exists
isInverted
public boolean isInverted()
- true for CMYK images generated by Adobe Photoshop
isTransparent
public boolean isTransparent()
Indicates whether the image is transparent.
- True if it is transparent
load
public boolean load(int type)
Load particular inforamtion for this image
This must be called before attempting to get
the information.
type
- the type of loading required
- boolean true if the information could be loaded