|
||||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |
java.lang.Objectartofillusion.image.ImageMap
artofillusion.image.SVGImage
public class SVGImage
Field Summary |
---|
Fields inherited from class artofillusion.image.ImageMap |
---|
PREVIEW_HEIGHT, PREVIEW_WIDTH |
Constructor Summary | |
---|---|
SVGImage(java.io.DataInputStream in)
Reconstruct an image from its serialized representation. |
|
SVGImage(java.io.File file)
Construct a SVGImage from a SVG file. |
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 SVGImage(java.io.File file) throws java.io.IOException, java.lang.InterruptedException, SVGException
java.io.IOException
java.lang.InterruptedException
SVGException
public SVGImage(java.io.DataInputStream in) throws java.io.IOException, SVGException
java.io.IOException
SVGException
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 |