public class GradientFilter extends AbstractBufferedImageOp
Modifier and Type | Field and Description |
---|---|
static int |
BICONICAL |
static int |
BILINEAR |
static int |
CONICAL |
static int |
INT_CIRCLE_DOWN |
static int |
INT_CIRCLE_UP |
static int |
INT_LINEAR |
static int |
INT_SMOOTH |
static int |
LINEAR |
static int |
RADIAL |
static int |
SQUARE |
filterListener
Constructor and Description |
---|
GradientFilter() |
GradientFilter(Point p1,
Point p2,
int color1,
int color2,
boolean repeat,
int type,
int interpolation) |
Modifier and Type | Method and Description |
---|---|
BufferedImage |
filter(BufferedImage src,
BufferedImage dst) |
float |
getAngle()
Returns the angle of the texture.
|
Colormap |
getColormap()
Get the colormap to be used for the filter.
|
int |
getInterpolation() |
int |
getPaintMode() |
Point |
getPoint1() |
Point |
getPoint2() |
int |
getType() |
void |
setAngle(float angle)
Specifies the angle of the texture.
|
void |
setColormap(Colormap colormap)
Set the colormap to be used for the filter.
|
void |
setInterpolation(int interpolation) |
void |
setPaintMode(int paintMode) |
void |
setPoint1(Point point1) |
void |
setPoint2(Point point2) |
void |
setType(int type) |
String |
toString() |
clone, createCompatibleDestImage, createCompatibleDestImage, filterDone, filterInitialize, filterProgress, filterStart, getBounds2D, getMetaData, getPoint2D, getRenderingHints, getRGB, setFilterListener, setRGB
public static final int LINEAR
public static final int BILINEAR
public static final int RADIAL
public static final int CONICAL
public static final int BICONICAL
public static final int SQUARE
public static final int INT_LINEAR
public static final int INT_CIRCLE_UP
public static final int INT_CIRCLE_DOWN
public static final int INT_SMOOTH
public void setPoint1(Point point1)
public Point getPoint1()
public void setPoint2(Point point2)
public Point getPoint2()
public void setType(int type)
public int getType()
public void setInterpolation(int interpolation)
public int getInterpolation()
public void setAngle(float angle)
angle
- the angle of the texture.getAngle()
public float getAngle()
setAngle(float)
public void setColormap(Colormap colormap)
colormap
- the colormapgetColormap()
public Colormap getColormap()
setColormap(org.zimowski.bambi.jhlabs.image.Colormap)
public void setPaintMode(int paintMode)
public int getPaintMode()
public BufferedImage filter(BufferedImage src, BufferedImage dst)
filter
in interface BufferedImageOp
filter
in class AbstractBufferedImageOp
Copyright © 2012-2013 Bambi Software Foundation. All Rights Reserved.