Constructor and Description |
---|
FileDisplay(boolean saveImage) |
FileDisplay(java.lang.String filename) |
Modifier and Type | Method and Description |
---|---|
void |
imageBegin(int w,
int h,
int bucketSize)
This is called before an image is rendered to indicate how large the
rendered image will be.
|
void |
imageEnd()
This call is made after the image has been rendered.
|
void |
imageFill(int x,
int y,
int w,
int h,
Color c,
float alpha)
Update the current image with a region of flat color.
|
void |
imagePrepare(int x,
int y,
int w,
int h,
int id)
Prepare the specified area to be rendered.
|
void |
imageUpdate(int x,
int y,
int w,
int h,
Color[] data,
float[] alpha)
Update the current image with a bucket of data.
|
public FileDisplay(boolean saveImage)
public FileDisplay(java.lang.String filename)
public void imageBegin(int w, int h, int bucketSize)
Display
imageBegin
in interface Display
w
- width of the rendered image in pixelsh
- height of the rendered image in pixelsbucketSize
- size of the buckets in pixelspublic void imagePrepare(int x, int y, int w, int h, int id)
Display
imagePrepare
in interface Display
x
- x coordinate of the bucket within the imagey
- y coordinate of the bucket within the imagew
- width of the bucket in pixelsh
- height of the bucket in pixelsid
- unique identifier corresponding to the thread which invoked
this callpublic void imageUpdate(int x, int y, int w, int h, Color[] data, float[] alpha)
Display
w * h
long and
in row major order.imageUpdate
in interface Display
x
- x coordinate of the bucket within the imagey
- y coordinate of the bucket within the imagew
- width of the bucket in pixelsh
- height of the bucket in pixelsdata
- bucket data, this array will be exactly w * h
longalpha
- pixel coverage data, this array will be exactly
w * h
longpublic void imageFill(int x, int y, int w, int h, Color c, float alpha)
Display