org.apache.fop.image

Class JpegImage

Implemented Interfaces:
FopImage
Known Direct Subclasses:
JpegImageIOImage

public class JpegImage
extends AbstractFopImage

FopImage object for JPEG images, Using Java native classes.
Author:
Eric Dalquist
See Also:
AbstractFopImage, FopImage

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

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, getICCProfile, getIntrinsicAlignmentAdjust, getIntrinsicHeight, getIntrinsicWidth, getMimeType, getOriginalURI, getRessourceBytes, getRessourceBytesSize, getSoftMask, getTransparentColor, getVerticalResolution, getWidth, hasSoftMask, isInverted, isTransparent, load, loadBitmap, loadDefaultOriginalData, loadDimensions, loadOriginalData

Constructor Details

JpegImage

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

Method Details

getICCProfile

public ICC_Profile getICCProfile()
Get the ICC profile for this Jpeg image.
Specified by:
getICCProfile in interface FopImage
Overrides:
getICCProfile in interface AbstractFopImage
Returns:
the icc profile or null if not found

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 interface AbstractFopImage
Returns:
true if loaded false for any error

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