类 MapColorsFilter

  • 所有已实现的接口:
    BufferedImageOp, Cloneable

    public class MapColorsFilter
    extends PointFilter
    A filter which replaces one color by another in an image. This is frankly, not often useful, but has its occasional uses when dealing with GIF transparency and the like.
    • 构造器详细资料

      • MapColorsFilter

        public MapColorsFilter()
        Construct a MapColorsFilter.
      • MapColorsFilter

        public MapColorsFilter​(int oldColor,
                               int newColor)
        Construct a MapColorsFilter.
        参数:
        oldColor - the color to replace
        newColor - the color to replace it with
    • 方法详细资料

      • filterRGB

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