railo.runtime.img.filter
Class GradientFilter
java.lang.Object
railo.runtime.img.filter.AbstractBufferedImageOp
railo.runtime.img.filter.GradientFilter
- All Implemented Interfaces:
- BufferedImageOp, Cloneable, DynFiltering
public class GradientFilter
- extends AbstractBufferedImageOp
- implements DynFiltering
A filter which draws a coloured gradient. This is largely superceded by GradientPaint in Java1.2, but does provide a few
more gradient options.
LINEAR
public static final int LINEAR
- See Also:
- Constant Field Values
BILINEAR
public static final int BILINEAR
- See Also:
- Constant Field Values
RADIAL
public static final int RADIAL
- See Also:
- Constant Field Values
CONICAL
public static final int CONICAL
- See Also:
- Constant Field Values
BICONICAL
public static final int BICONICAL
- See Also:
- Constant Field Values
SQUARE
public static final int SQUARE
- See Also:
- Constant Field Values
INT_LINEAR
public static final int INT_LINEAR
- See Also:
- Constant Field Values
INT_CIRCLE_UP
public static final int INT_CIRCLE_UP
- See Also:
- Constant Field Values
INT_CIRCLE_DOWN
public static final int INT_CIRCLE_DOWN
- See Also:
- Constant Field Values
INT_SMOOTH
public static final int INT_SMOOTH
- See Also:
- Constant Field Values
GradientFilter
public GradientFilter()
GradientFilter
public GradientFilter(Point p1,
Point p2,
int color1,
int color2,
boolean repeat,
int type,
int interpolation)
setPoint1
public void setPoint1(Point point1)
getPoint1
public Point getPoint1()
setPoint2
public void setPoint2(Point point2)
getPoint2
public Point getPoint2()
setType
public void setType(int type)
getType
public int getType()
setInterpolation
public void setInterpolation(int interpolation)
getInterpolation
public int getInterpolation()
setAngle
public void setAngle(float angle)
- Specifies the angle of the texture.
- Parameters:
angle
- the angle of the texture.- See Also:
getAngle()
getAngle
public float getAngle()
- Returns the angle of the texture.
- Returns:
- the angle of the texture.
- See Also:
setAngle(float)
setColormap
public void setColormap(Colormap colormap)
- Set the colormap to be used for the filter.
- Parameters:
colormap
- the colormap- See Also:
getColormap()
getColormap
public Colormap getColormap()
- Get the colormap to be used for the filter.
- Returns:
- the colormap
- See Also:
setColormap(railo.runtime.img.filter.Colormap)
setPaintMode
public void setPaintMode(int paintMode)
getPaintMode
public int getPaintMode()
filter
public BufferedImage filter(BufferedImage src,
BufferedImage dst)
- Specified by:
filter
in interface BufferedImageOp
toString
public String toString()
- Overrides:
toString
in class Object
filter
public BufferedImage filter(BufferedImage src,
Struct parameters)
throws PageException
- Specified by:
filter
in interface DynFiltering
- Throws:
PageException
Copyright © 2012 Railo