Class ShapeFilter

All Implemented Interfaces:
BufferedImageOp, Cloneable

public class ShapeFilter extends WholeImageFilter
  • Field Details

  • Constructor Details

    • ShapeFilter

      public ShapeFilter()
  • Method Details

    • setFactor

      public void setFactor(float factor)
    • getFactor

      public float getFactor()
    • setColormap

      public void setColormap(Colormap colormap)
      Set the colormap to be used for the filter.
      Parameters:
      colormap - the colormap
      See Also:
    • getColormap

      public Colormap getColormap()
      Get the colormap to be used for the filter.
      Returns:
      the colormap
      See Also:
    • setUseAlpha

      public void setUseAlpha(boolean useAlpha)
    • getUseAlpha

      public boolean getUseAlpha()
    • setType

      public void setType(int type)
    • getType

      public int getType()
    • setInvert

      public void setInvert(boolean invert)
    • getInvert

      public boolean getInvert()
    • setMerge

      public void setMerge(boolean merge)
    • getMerge

      public boolean getMerge()
    • filterPixels

      protected int[] filterPixels(int width, int height, int[] inPixels, Rectangle transformedSpace)
      Description copied from class: WholeImageFilter
      Actually filter the pixels.
      Specified by:
      filterPixels in class WholeImageFilter
      Parameters:
      width - the image width
      height - the image height
      inPixels - the image pixels
      transformedSpace - the output bounds
      Returns:
      the output pixels
    • distanceMap

      public int distanceMap(int[] map, int width, int height)
    • toString

      public String toString()
      Overrides:
      toString in class Object