Class GrayFilter

  • All Implemented Interfaces:
    ImageConsumer, Cloneable

    public class GrayFilter
    extends RGBImageFilter
    An image filter that turns an image into a grayscale image. Used for icons in disabled buttons and labels.
    • Constructor Detail

      • GrayFilter

        public GrayFilter​(int brightness,
                          int contrast,
                          int alpha)
        Parameters:
        brightness - in range [-100..100] where 0 has no effect
        contrast - in range [-100..100] where 0 has no effect
        alpha - in range [0..100] where 0 is transparent, 100 has no effect
      • GrayFilter

        public GrayFilter()
    • Method Detail

      • createDisabledIconFilter

        public static GrayFilter createDisabledIconFilter​(boolean dark)
      • getBrightness

        public int getBrightness()
      • getContrast

        public int getContrast()
      • getAlpha

        public int getAlpha()