|
|||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |
public static interface Compositor.Buffer
Buffer of pixels on which compositing operations can be performed.
Method Summary | |
---|---|
boolean |
addSample(int index,
float r,
float g,
float b,
float alpha)
Adds an RGBA sample to one pixel, using separate float scalars. |
boolean |
addSample(int index,
int rgba)
Adds an RGBA sample to one pixel, using an RGBA integer. |
boolean |
addSample(int index,
int rgb,
float alpha)
Adds an RGBA sample to one pixel, using an RGB integer and separate float value. |
void |
clear()
Clears all samples from this buffer. |
int |
toRgbInt(int index)
Returns the result of compositing all the added samples as a non-premultiplied ARGB integer. |
Method Detail |
---|
void clear()
boolean addSample(int index, float r, float g, float b, float alpha)
index
- pixel indexr
- red value, 0-1g
- green value, 0-1b
- blue value, 0-1alpha
- alpha value, 0-1
boolean addSample(int index, int rgb, float alpha)
index
- pixel indexrgb
- integer containing RGB in lower 24 bits;
highest byte is ignoredalpha
- alpha value, 0-1
boolean addSample(int index, int rgba)
index
- pixel indexrgba
- integer containing RGBA values one per byte
int toRgbInt(int index)
BufferedImage
setRGB
methods) or, more efficiently,
an RgbImage
buffer.
index
- pixel index
|
|||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |