public class Brightpass extends CoreEffect<RenderState>
Effect.AccelType
Modifier and Type | Field and Description |
---|---|
private float |
threshold |
DefaultInput
Constructor and Description |
---|
Brightpass()
Constructs a new
Brightpass effect with the default
threshold value (0.3), using the default input for source data. |
Brightpass(Effect input)
Constructs a new
Brightpass effect with the default
threshold value (0.3). |
Modifier and Type | Method and Description |
---|---|
Effect |
getInput()
Returns the input for this
Effect . |
RenderState |
getRenderState(FilterContext fctx,
BaseTransform transform,
Rectangle outputClip,
java.lang.Object renderHelper,
Effect defaultInput)
Returns the object representing the rendering strategy and state for
the filter operation characterized by the specified arguments.
|
float |
getThreshold()
Returns the threshold, which controls which pixels are included in
the resulting image.
|
boolean |
reducesOpaquePixels()
Whether an opacity for any pixel is different (lower)
than the corresponding pixel in the default input.
|
void |
setInput(Effect input)
Sets the input for this
Effect . |
void |
setThreshold(float threshold)
Sets the threshold, which controls which pixels are included in
the resulting image.
|
filterImageDatas, getAccelType, getPeer, updatePeerKey, updatePeerKey
filter, getBounds, transform, untransform, untransformClip
combineBounds, combineBounds, createCompatibleImage, ensureTransform, getCompatibleImage, getDefaultedInput, getDefaultedInput, getDirtyRegions, getInputs, getNumInputs, getResultBounds, getState, releaseCompatibleImage, setInput, transformBounds
public Brightpass()
Brightpass
effect with the default
threshold value (0.3), using the default input for source data.
This is a shorthand equivalent to:
new Brightpass(DefaultInput)
public Brightpass(Effect input)
Brightpass
effect with the default
threshold value (0.3).input
- the single input Effect
java.lang.IllegalArgumentException
- if input
is nullpublic final Effect getInput()
Effect
.Effect
public void setInput(Effect input)
Effect
.input
- the input for this Effect
java.lang.IllegalArgumentException
- if input
is nullpublic float getThreshold()
public void setThreshold(float threshold)
Min: 0.0 Max: 1.0 Default: 0.3 Identity: n/a
threshold
- the threshold valuejava.lang.IllegalArgumentException
- if threshold
is outside
the allowable rangepublic RenderState getRenderState(FilterContext fctx, BaseTransform transform, Rectangle outputClip, java.lang.Object renderHelper, Effect defaultInput)
FilterEffect
FilterContext
object may be null.
outputClip
and renderHelper
may always be null just
as they may be null for a given filter operation.getRenderState
in class FilterEffect<RenderState>
fctx
- the context object that would be used by the Renderer
if this call is preparing for a render operation, or nulltransform
- the transform for the output of this operationoutputClip
- the clip rectangle that may restrict this operation, or nullrenderHelper
- the rendering helper object that can be used to shortcut
this operation under certain conditions, or nulldefaultInput
- the Effect
to be used in place of any null inputspublic boolean reducesOpaquePixels()
Effect
reducesOpaquePixels
in class Effect