|
|||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | ||||||||
java.lang.Objectorg.jscience.computing.ai.util.ImageHelper
public class ImageHelper
This utility class provides simple helper functions to aid image loading, saving and rendering within the Generation5 classes.
| Constructor Summary | |
|---|---|
ImageHelper()
Creates a new instance of ImageHelper |
|
| Method Summary | |
|---|---|
static void |
writeVisualizedImage(java.lang.String filename,
int width,
int height,
Visualizable content)
This function writes an image of a given Visualizable object. |
static void |
writeVisualizedImage(java.lang.String filename,
int width,
int height,
Visualizable content,
boolean aa)
This function writes an image of a given Visualizable object. |
| Methods inherited from class java.lang.Object |
|---|
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
| Constructor Detail |
|---|
public ImageHelper()
| Method Detail |
|---|
public static void writeVisualizedImage(java.lang.String filename,
int width,
int height,
Visualizable content)
throws java.io.IOException
render function is called, rendering the image on to a
graphics context before being written to an image.
filename - filename of the image to writewidth - the width of the image in pixelsheight - the height of the image in pixelscontent - the visualizable content
java.io.IOException - this exception is thrown by the
javax.imageio classes if there is a problem
writing the imageVisualizable
public static void writeVisualizedImage(java.lang.String filename,
int width,
int height,
Visualizable content,
boolean aa)
throws java.io.IOException
render function is called, rendering the image on to a
graphics context before being written to an image.
filename - filename of the image to writewidth - the width of the image in pixelsheight - the height of the image in pixelscontent - the visualizable contentaa - should anti-aliasing be used?
java.io.IOException - this exception is thrown by the
javax.imageio classes if there is a problem
writing the imageVisualizable
|
|||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | ||||||||