public class GaussianBlur extends LinearConvolveCoreEffect
Effect.AccelType| Modifier and Type | Field and Description |
|---|---|
private GaussianBlurState |
state |
DefaultInput| Constructor and Description |
|---|
GaussianBlur()
Constructs a new
GaussianBlur effect with the default radius
(10.0), using the default input for source data. |
GaussianBlur(float radius)
Constructs a new
GaussianBlur effect with the given radius,
using the default input for source data. |
GaussianBlur(float radius,
Effect input)
Constructs a new
GaussianBlur effect with the given radius. |
| Modifier and Type | Method and Description |
|---|---|
Effect.AccelType |
getAccelType(FilterContext fctx)
Returns one of the
AccelType values, indicating
whether this Effect is accelerated in hardware for the
given FilterContext. |
BaseBounds |
getBounds(BaseTransform transform,
Effect defaultInput)
Returns the bounding box that will be affected by this filter
operation when viewed under the specified
transform,
given its list of input Effects and the specified
defaultInput effect. |
DirtyRegionContainer |
getDirtyRegions(Effect defaultInput,
DirtyRegionPool regionPool)
Returns the dirty region container containing dirty regions affected
by this filter operation.
|
Effect |
getInput()
Returns the input for this
Effect. |
float |
getRadius()
Returns the radius of the Gaussian kernel.
|
Rectangle |
getResultBounds(BaseTransform transform,
Rectangle outputClip,
ImageData... inputDatas) |
(package private) LinearConvolveKernel |
getState()
Returns state object that is associated with this effect instance.
|
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 to a specific Effect
or to the default input if input is null. |
void |
setRadius(float radius)
Sets the radius of the Gaussian kernel.
|
filterImageDatas, getRenderStategetPeer, updatePeerKey, updatePeerKeyfilter, transform, untransform, untransformClipcombineBounds, combineBounds, createCompatibleImage, ensureTransform, getCompatibleImage, getDefaultedInput, getDefaultedInput, getInputs, getNumInputs, releaseCompatibleImage, setInput, transformBoundsprivate GaussianBlurState state
public GaussianBlur()
GaussianBlur effect with the default radius
(10.0), using the default input for source data.
This is a shorthand equivalent to:
new GaussianBlur(10f, DefaultInput)
public GaussianBlur(float radius)
GaussianBlur effect with the given radius,
using the default input for source data.
This is a shorthand equivalent to:
new GaussianBlur(radius, DefaultInput)
radius - the radius of the Gaussian kerneljava.lang.IllegalArgumentException - if radius is outside the
allowable rangepublic GaussianBlur(float radius,
Effect input)
GaussianBlur effect with the given radius.radius - the radius of the Gaussian kernelinput - the single input Effectjava.lang.IllegalArgumentException - if radius is outside the
allowable range, or if input is nullLinearConvolveKernel getState()
EffectgetState in class LinearConvolveCoreEffectpublic Effect.AccelType getAccelType(FilterContext fctx)
EffectAccelType values, indicating
whether this Effect is accelerated in hardware for the
given FilterContext.getAccelType in class CoreEffect<LinearConvolveRenderState>AccelType valuespublic final Effect getInput()
Effect.Effectpublic void setInput(Effect input)
Effect to a specific Effect
or to the default input if input is null.input - the input for this Effectpublic float getRadius()
public void setRadius(float radius)
Min: 0.0
Max: 63.0
Default: 10.0
Identity: 0.0
radius - the radius of the Gaussian kerneljava.lang.IllegalArgumentException - if radius is outside the
allowable rangepublic BaseBounds getBounds(BaseTransform transform, Effect defaultInput)
Effecttransform,
given its list of input Effects and the specified
defaultInput effect.
Note that the returned bounds can be smaller or larger than one
or more of the inputs.getBounds in class FilterEffect<LinearConvolveRenderState>transform - the transform the effect will be viewed underdefaultInput - the default input Effect to be used in
all cases where a filter has a null inputpublic Rectangle getResultBounds(BaseTransform transform, Rectangle outputClip, ImageData... inputDatas)
getResultBounds in class Effectpublic boolean reducesOpaquePixels()
EffectreducesOpaquePixels in class Effectpublic DirtyRegionContainer getDirtyRegions(Effect defaultInput, DirtyRegionPool regionPool)
EffectgetDirtyRegions in class EffectdefaultInput - the default input Effect to be used in
all cases where a filter has a null inputregionPool - the pool of dirty regions