ca.grimoire.jnoise.examples
Class ImageBuilder
java.lang.Object
ca.grimoire.jnoise.examples.ImageBuilder
public final class ImageBuilder
- extends Object
Tool for generating Images from plane maps and noise modules.
|
Constructor Summary |
ImageBuilder(PlaneModel model,
double u,
double v)
Creates a new builder for a given plane map and extents. |
|
Method Summary |
Image |
createImage(int width,
int height)
Creates an image from the noise module of given dimensions. |
| Methods inherited from class java.lang.Object |
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
ImageBuilder
public ImageBuilder(PlaneModel model,
double u,
double v)
- Creates a new builder for a given plane map and extents. The image extents
refer to the plane model's coordinate space and do not affect the size of
the image.
- Parameters:
model - the model mapping the module to draw to a plane.u - the size of the image's coordinate space along the Y axis.v - the size of the image's coordinate space along the X axis.
createImage
public Image createImage(int width,
int height)
- Creates an image from the noise module of given dimensions.
- Parameters:
width - the width of the image.height - the height of the image.
- Returns:
- a new image of the module.
Copyright © 2008 Grimoire Alchymia. All Rights Reserved.