railo.runtime.img.filter
Class LookupFilter

java.lang.Object
  extended by railo.runtime.img.filter.AbstractBufferedImageOp
      extended by railo.runtime.img.filter.PointFilter
          extended by railo.runtime.img.filter.LookupFilter
All Implemented Interfaces:
BufferedImageOp, Cloneable, DynFiltering

public class LookupFilter
extends PointFilter
implements DynFiltering

A filter which uses the brightness of each pixel to lookup a color from a colormap.


Constructor Summary
LookupFilter()
          Construct a LookupFilter.
LookupFilter(Colormap colormap)
          Construct a LookupFilter.
 
Method Summary
 BufferedImage filter(BufferedImage src, Struct parameters)
           
 int filterRGB(int x, int y, int rgb)
           
 Colormap getColormap()
          Get the colormap to be used for the filter.
 void setColormap(Colormap colormap)
          Set the colormap to be used for the filter.
 String toString()
           
 
Methods inherited from class railo.runtime.img.filter.PointFilter
filter, setDimensions
 
Methods inherited from class railo.runtime.img.filter.AbstractBufferedImageOp
clone, createCompatibleDestImage, getBounds2D, getPoint2D, getRenderingHints, getRGB, setRGB
 
Methods inherited from class java.lang.Object
equals, getClass, hashCode, notify, notifyAll, wait, wait, wait
 

Constructor Detail

LookupFilter

public LookupFilter()
Construct a LookupFilter.


LookupFilter

public LookupFilter(Colormap colormap)
Construct a LookupFilter.

Parameters:
colormap - the color map
Method Detail

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)

filterRGB

public int filterRGB(int x,
                     int y,
                     int rgb)
Specified by:
filterRGB in class PointFilter

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
Overrides:
filter in class PointFilter
Throws:
PageException


Copyright © 2012 Railo