类 FillFilter

  • 所有已实现的接口:
    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.
    • 构造器详细资料

      • FillFilter

        public FillFilter()
        Construct a FillFilter.
      • FillFilter

        public FillFilter​(int color)
        Construct a FillFilter.
        参数:
        color - the fill color
    • 方法详细资料

      • setFillColor

        public void setFillColor​(int fillColor)
        Set the fill color.
        参数:
        fillColor - the fill color
        另请参阅:
        getFillColor()
      • getFillColor

        public int getFillColor()
        Get the fill color.
        返回:
        the fill color
        另请参阅:
        setFillColor(int)
      • filterRGB

        public int filterRGB​(int x,
                             int y,
                             int rgb)
        指定者:
        filterRGB 在类中 PointFilter