Class FillFilter

  • All Implemented Interfaces:
    java.awt.image.BufferedImageOp, java.lang.Cloneable

    public class FillFilter
    extends PointFilter
    A filter which fills an image with a given color. Normally you would just call Graphics.fillRect but it can sometimes be useful to go via a filter to fit in with an existing API.
    • Constructor Detail

      • FillFilter

        public FillFilter()
      • FillFilter

        public FillFilter​(int color)
    • Method Detail

      • setFillColor

        public void setFillColor​(int fillColor)
      • getFillColor

        public int getFillColor()
      • filterRGB

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