Benchmark
, FastDisplay
, FileDisplay
, FrameDisplay
, ImagePanel
, ImgPipeDisplay
public interface Display
Modifier and Type | Method | 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.
|
void imageBegin(int w, int h, int bucketSize)
w
- width of the rendered image in pixelsh
- height of the rendered image in pixelsbucketSize
- size of the buckets in pixelsvoid imagePrepare(int x, int y, int w, int h, int id)
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 callvoid imageUpdate(int x, int y, int w, int h, Color[] data, float[] alpha)
w * h
long and
in row major order.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
longvoid imageFill(int x, int y, int w, int h, Color c, float alpha)
x
- x coordinate of the region within the imagey
- y coordinate of the region within the imagew
- with of the region in pixelsh
- height of the region in pixelsc
- color to fill the region withalpha
- pixel coveragevoid imageEnd()