|
||||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |
java.lang.Objectartofillusion.image.ComplexImage
public class ComplexImage
This class stores an image, with optional additional floating point values for each pixel. It is intended to be extensible, so that as features are added to the renderers, the amount of information available for each pixel can grow.
Field Summary | |
---|---|
static int |
ALPHA
|
static int |
BLUE
|
static int |
DEPTH
|
static int |
GREEN
|
static int |
NOISE
|
static int |
OBJECT
|
static int |
RED
|
Constructor Summary | |
---|---|
ComplexImage(java.awt.Image image)
Construct a ComplexImage which wraps an Image object. |
Method Summary | |
---|---|
ComplexImage |
duplicate()
Create a duplicate of this object. |
int |
getHeight()
Get the height of the image. |
java.awt.Image |
getImage()
Get the Image object. |
float |
getPixelComponent(int x,
int y,
int component)
Get the floating point value of a component for a pixel. |
int |
getWidth()
Get the width of the image. |
boolean |
hasFloatData(int component)
Determine whether floating point data is available for a particular component. |
void |
rebuildImage()
Rebuild the Image from the floating point components. |
void |
setComponentValues(int component,
float[] values)
Set the floating point values of a particular component for each pixel. |
Methods inherited from class java.lang.Object |
---|
equals, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
Field Detail |
---|
public static final int BLUE
public static final int GREEN
public static final int RED
public static final int ALPHA
public static final int DEPTH
public static final int OBJECT
public static final int NOISE
Constructor Detail |
---|
public ComplexImage(java.awt.Image image)
Method Detail |
---|
public void setComponentValues(int component, float[] values)
public int getWidth()
public int getHeight()
public java.awt.Image getImage()
public boolean hasFloatData(int component)
public float getPixelComponent(int x, int y, int component)
public ComplexImage duplicate()
public void rebuildImage()
|
||||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |