Class MaskFilter

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

    public class MaskFilter
    extends PointFilter
    Applies a bit mask to each ARGB pixel of an image. You can use this for, say, masking out the red channel.
    • Constructor Detail

      • MaskFilter

        public MaskFilter()
      • MaskFilter

        public MaskFilter​(int mask)
    • Method Detail

      • setMask

        public void setMask​(int mask)
      • getMask

        public int getMask()
      • filterRGB

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

        public java.lang.String toString()
        Overrides:
        toString in class java.lang.Object