public static interface Compositor.Buffer
| Modifier and Type | Method and Description |
|---|---|
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.
|
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-1boolean addSample(int index,
int rgb,
float alpha)
index - pixel indexrgb - integer containing RGB in lower 24 bits;
highest byte is ignoredalpha - alpha value, 0-1boolean addSample(int index,
int rgba)
index - pixel indexrgba - integer containing RGBA values one per byteint toRgbInt(int index)
BufferedImage
setRGB methods) or, more efficiently,
an RgbImage buffer.index - pixel indexCopyright © 2025 Central Laboratory of the Research Councils. All Rights Reserved.