Class GammaFilter

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

    public class GammaFilter
    extends TransferFilter
    A filter for changing the gamma of an image.
    • Constructor Detail

      • GammaFilter

        public GammaFilter()
        Construct a GammaFilter.
      • GammaFilter

        public GammaFilter​(float gamma)
        Construct a GammaFilter.
        Parameters:
        gamma - the gamma level for all RGB channels
      • GammaFilter

        public GammaFilter​(float rGamma,
                           float gGamma,
                           float bGamma)
        Construct a GammaFilter.
        Parameters:
        rGamma - the gamma level for the red channel
        gGamma - the gamma level for the blue channel
        bGamma - the gamma level for the green channel
    • Method Detail

      • setGamma

        public void setGamma​(float rGamma,
                             float gGamma,
                             float bGamma)
        Set the gamma levels.
        Parameters:
        rGamma - the gamma level for the red channel
        gGamma - the gamma level for the blue channel
        bGamma - the gamma level for the green channel
        See Also:
        getGamma()
      • setGamma

        public void setGamma​(float gamma)
        Set the gamma level.
        Parameters:
        gamma - the gamma level for all RGB channels
        See Also:
        getGamma()
      • toString

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