Modifier and Type | Field and Description |
---|---|
static int |
CLAMP_EDGES
Clamp edges.
|
static int |
WRAP_EDGES
Wrap edges.
|
Constructor and Description |
---|
FilterBlur()
Create the filter.
|
Modifier and Type | Method and Description |
---|---|
ImageBuffer |
filter(ImageBuffer source)
Apply a filter to the image source.
|
Transform |
getTransform(double scaleX,
double scaleY)
Get the associated transform.
|
void |
setAlpha(boolean alpha)
Set the alpha flag.
|
void |
setEdgeMode(int edge)
Set the edge mode.
|
void |
setRadius(float radius)
Set the radius value.
|
public static final int CLAMP_EDGES
public static final int WRAP_EDGES
public void setRadius(float radius)
radius
- The radius value.public void setAlpha(boolean alpha)
alpha
- The alpha flag.public void setEdgeMode(int edge)
edge
- The edge mode.CLAMP_EDGES
,
WRAP_EDGES
public ImageBuffer filter(ImageBuffer source)
Filter
public Transform getTransform(double scaleX, double scaleY)
Filter
getTransform
in interface Filter
scaleX
- The horizontal scale.scaleY
- The vertical scale.Copyright © 2016 Byron 3D Games Studio. All rights reserved.