|
||||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |
java.lang.Objectartofillusion.image.ImageMap
artofillusion.image.HDRImage
public class HDRImage
HDRImage is an ImageMap subclass. It represents a high dynamic range image stored in Greg Ward's RGBE format, as described in "Graphics Gems IV", edited by James Arvo, Academic Press, 1994.
Field Summary |
---|
Fields inherited from class artofillusion.image.ImageMap |
---|
PREVIEW_HEIGHT, PREVIEW_WIDTH |
Constructor Summary | |
---|---|
HDRImage(byte[] r,
byte[] g,
byte[] b,
byte[] e,
int xres,
int yres)
Create an HDRImage from the r, g, b, and e components. |
|
HDRImage(java.io.DataInputStream in)
Reconstruct an image from its serialized representation. |
Method Summary | |
---|---|
float |
getAverageComponent(int component)
Get the average value for a particular component, over the entire image. |
void |
getColor(RGBColor theColor,
boolean wrapx,
boolean wrapy,
double x,
double y,
double xsize,
double ysize)
Get the color at a particular location. |
float |
getComponent(int component,
boolean wrapx,
boolean wrapy,
double x,
double y,
double xsize,
double ysize)
Get the value of a single component at a particular location in the image. |
int |
getComponentCount()
Get the number of components in the image. |
void |
getGradient(Vec2 grad,
int component,
boolean wrapx,
boolean wrapy,
double x,
double y,
double xsize,
double ysize)
Get the gradient of a single component at a particular location in the image. |
int |
getHeight()
Get the height of the image. |
java.awt.Image |
getPreview()
Get a scaled down copy of the image, to use for previews. |
int |
getWidth()
Get the width of the image. |
void |
writeToStream(java.io.DataOutputStream out)
Serialize an image to an output stream. |
Methods inherited from class artofillusion.image.ImageMap |
---|
getID, loadImage |
Methods inherited from class java.lang.Object |
---|
equals, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
Constructor Detail |
---|
public HDRImage(byte[] r, byte[] g, byte[] b, byte[] e, int xres, int yres)
public HDRImage(java.io.DataInputStream in) throws java.io.IOException, java.io.InvalidObjectException
java.io.IOException
java.io.InvalidObjectException
Method Detail |
---|
public int getWidth()
getWidth
in class ImageMap
public int getHeight()
getHeight
in class ImageMap
public int getComponentCount()
getComponentCount
in class ImageMap
public float getComponent(int component, boolean wrapx, boolean wrapy, double x, double y, double xsize, double ysize)
getComponent
in class ImageMap
public float getAverageComponent(int component)
getAverageComponent
in class ImageMap
public void getColor(RGBColor theColor, boolean wrapx, boolean wrapy, double x, double y, double xsize, double ysize)
getColor
in class ImageMap
public void getGradient(Vec2 grad, int component, boolean wrapx, boolean wrapy, double x, double y, double xsize, double ysize)
getGradient
in class ImageMap
public java.awt.Image getPreview()
getPreview
in class ImageMap
public void writeToStream(java.io.DataOutputStream out) throws java.io.IOException
writeToStream
in class ImageMap
java.io.IOException
|
||||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |