fop 0.90alpha1

org.apache.fop.image
Class JpegImage

java.lang.Object
  |
  +--org.apache.fop.image.AbstractFopImage
        |
        +--org.apache.fop.image.JpegImage
All Implemented Interfaces:
FopImage

public class JpegImage
extends AbstractFopImage

FopImage object for JPEG images, Using Java native classes.

Author:
Eric Dalquist
See Also:
AbstractFopImage, FopImage

Inner classes inherited from class org.apache.fop.image.FopImage
FopImage.ImageInfo
 
Fields inherited from class org.apache.fop.image.AbstractFopImage
bitmaps, bitsPerPixel, colorSpace, dpiHorizontal, dpiVertical, height, imageInfo, inputStream, isTransparent, loaded, log, raw, transparentColor, width
 
Fields inherited from interface org.apache.fop.image.FopImage
BITMAP, DIMENSIONS, ORIGINAL_DATA
 
Constructor Summary
JpegImage(FopImage.ImageInfo imgInfo)
          Create a jpeg image with the info.
 
Method Summary
 java.awt.color.ICC_Profile getICCProfile()
          Get the ICC profile for this Jpeg image.
protected  boolean loadOriginalData()
          Load the original jpeg data.
 
Methods inherited from class org.apache.fop.image.AbstractFopImage
getBitmaps, getBitmapsSize, getBitsPerPixel, getColorSpace, getHeight, getHorizontalResolution, getIntrinsicHeight, getIntrinsicWidth, getMimeType, getOriginalURI, getRessourceBytes, getRessourceBytesSize, getSoftMask, getTransparentColor, getVerticalResolution, getWidth, hasSoftMask, isTransparent, load, loadBitmap, loadDimensions
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 

Constructor Detail

JpegImage

public JpegImage(FopImage.ImageInfo imgInfo)
Create a jpeg image with the info.
Parameters:
imgInfo - the image info for this jpeg
Method Detail

loadOriginalData

protected boolean loadOriginalData()
Load the original jpeg data. This loads the original jpeg data and reads the color space, and icc profile if any.
Overrides:
loadOriginalData in class AbstractFopImage
Returns:
true if loaded false for any error

getICCProfile

public java.awt.color.ICC_Profile getICCProfile()
Get the ICC profile for this Jpeg image.
Overrides:
getICCProfile in class AbstractFopImage
Returns:
the icc profile or null if not found

fop 0.90alpha1

Copyright 1999-2005 The Apache Software Foundation. All Rights Reserved.