org.apache.fop.image

Class GifImage

Implemented Interfaces:
FopImage

public class GifImage
extends AbstractFopImage

FopImage object for GIF images, using Java native classes.
Authors:
Eric SCHAEFFER
Modified by Eric Dalquist - 9/14/2001 - ebdalqui@mtu.edu
See Also:
AbstractFopImage, FopImage

Nested Class Summary

protected static class
GifImage.DummyConnection
A dummy url connection for a gif image in an input stream.

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

GifImage(FopImage.ImageInfo imgInfo)
Create a new gif image.

Method Summary

protected boolean
loadBitmap()
Load the bitmap for this gif image.
protected boolean
loadOriginalData()

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

GifImage

public GifImage(FopImage.ImageInfo imgInfo)
Create a new gif image.
Parameters:
imgInfo - the image info for this gif image

Method Details

loadBitmap

protected boolean loadBitmap()
Load the bitmap for this gif image. This loads the data and creates a bitmap byte array of the image data. To decode the image a dummy URLConnection is used that will do the conversion.
Overrides:
loadBitmap in interface AbstractFopImage
Returns:
True if the load process succeeded

loadOriginalData

protected boolean loadOriginalData()
Overrides:
loadOriginalData in interface AbstractFopImage

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