org.apache.fop.image
Class FopImageConsumer
java.lang.Object
org.apache.fop.image.FopImageConsumer
- ImageConsumer
public class FopImageConsumer
extends java.lang.Object
implements ImageConsumer
ImageConsumer implementation for FopImage classes.
protected ColorModel | cm - Color model
|
protected int | height - Image height in pixels
|
protected int | hints - hints
|
protected Integer | imageStatus - Image status
|
protected ImageProducer | ip - Image producer
|
protected Hashtable | properties - Image properties
|
protected int | width - Image width in pixels
|
ColorModel | getColorModel() - Returns the color model of the image
|
int | getHeight() - Returns the image height
|
int[] | getImage() - Returns the bitmap as an array.
|
int | getWidth() - Returns the image width
|
void | imageComplete(int status)
|
boolean | isImageReady() - Indicates whether the image is ready.
|
void | setColorModel(ColorModel model)
|
void | setDimensions(int width, int height)
|
void | setHints(int hintflags)
|
void | setPixels(int x, int y, int w, int h, ColorModel model, byte[] pixels, int off, int scansize)
|
void | setPixels(int x, int y, int w, int h, ColorModel model, int[] pixels, int off, int scansize)
|
void | setProperties(Hashtable props)
|
cm
protected ColorModel cm
Color model
height
protected int height
Image height in pixels
hints
protected int hints
hints
imageStatus
protected Integer imageStatus
Image status
ip
protected ImageProducer ip
Image producer
properties
protected Hashtable properties
Image properties
width
protected int width
Image width in pixels
FopImageConsumer
public FopImageConsumer(ImageProducer iprod)
Main constructor
iprod
- ImageProducer to use
getColorModel
public ColorModel getColorModel()
Returns the color model of the image
getHeight
public int getHeight()
Returns the image height
getImage
public int[] getImage()
throws Exception
Returns the bitmap as an array.
getWidth
public int getWidth()
Returns the image width
imageComplete
public void imageComplete(int status)
java.awt.image.ImageConsumer.imageComplete(int)
isImageReady
public boolean isImageReady()
throws Exception
Indicates whether the image is ready.
- boolean True if the image is ready, false if it's still loading
setColorModel
public void setColorModel(ColorModel model)
java.awt.image.ImageConsumer.setColorModel(ColorModel)
setDimensions
public void setDimensions(int width,
int height)
java.awt.image.ImageConsumer.setDimensions(int, int)
setHints
public void setHints(int hintflags)
java.awt.image.ImageConsumer.setHints(int)
setPixels
public void setPixels(int x,
int y,
int w,
int h,
ColorModel model,
byte[] pixels,
int off,
int scansize)
java.awt.image.ImageConsumer.setPixels(int, int, int, int, ColorModel, byte[], int, int)
setPixels
public void setPixels(int x,
int y,
int w,
int h,
ColorModel model,
int[] pixels,
int off,
int scansize)
java.awt.image.ImageConsumer.setPixels(int, int, int, int, ColorModel, int[], int, int)
setProperties
public void setProperties(Hashtable props)
java.awt.image.ImageConsumer.setProperties(Hashtable)
Copyright 1999-2007 The Apache Software Foundation. All Rights Reserved.