public static class Compositor.BoostCompositor extends Compositor
Compositor.SATURATION
except that any pixel with a
non-zero alpha has its alpha value boosted to a given minimum.
The effect is that even very slightly populated pixels can be
visually distinguished from unpopulated pixels, which is not the
case for standard saturation composition.Compositor.BoostCompositor, Compositor.Buffer
SATURATION
Constructor | Description |
---|---|
BoostCompositor(float boost) |
Constructor.
|
Modifier and Type | Method | Description |
---|---|---|
Compositor.Buffer |
createBuffer(int count) |
Creates a buffer on which compositing operations can be performed.
|
float |
getBoost() |
Returns the boost value for this compositor.
|
float |
scaleAlpha(float alpha) |
Adjusts an alpha value in accordance with this compositor's policy.
|
byteToFloat, floatToByte, srcOverOpaque
public BoostCompositor(float boost)
Compositor.SATURATION
.boost
- minimum alpha output for non-empty pixelpublic Compositor.Buffer createBuffer(int count)
Compositor
createBuffer
in class Compositor
count
- number of pixel elements in bufferpublic float scaleAlpha(float alpha)
Compositor
scaleAlpha
in class Compositor
alpha
- input alpha in range 0-1public float getBoost()
Copyright © 2018 Central Laboratory of the Research Councils. All Rights Reserved.