fop 0.94

org.apache.fop.image
Class JpegImage

java.lang.Object
  extended by org.apache.fop.image.AbstractFopImage
      extended by org.apache.fop.image.JpegImage
All Implemented Interfaces:
FopImage
Direct Known Subclasses:
JpegImageIOImage

public class JpegImage
extends AbstractFopImage

FopImage object for JPEG images, Using Java native classes.

Author:
Eric Dalquist
See Also:
AbstractFopImage, FopImage

Nested Class Summary
 
Nested classes/interfaces inherited from interface org.apache.fop.image.FopImage
FopImage.ImageInfo
 
Field Summary
 
Fields inherited from class org.apache.fop.image.AbstractFopImage
bitmaps, bitsPerPixel, colorSpace, dpiHorizontal, dpiVertical, height, imageInfo, inputStream, invertImage, 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, getIntrinsicAlignmentAdjust, getIntrinsicHeight, getIntrinsicWidth, getMimeType, getOriginalURI, getRessourceBytes, getRessourceBytesSize, getSoftMask, getTransparentColor, getVerticalResolution, getWidth, hasSoftMask, isInverted, isTransparent, load, loadBitmap, loadDefaultOriginalData, 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.

Specified by:
getICCProfile in interface FopImage
Overrides:
getICCProfile in class AbstractFopImage
Returns:
the icc profile or null if not found

fop 0.94

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