Class GammaFilter

All Implemented Interfaces:
BufferedImageOp, Cloneable

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

    • 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 Details

    • 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:
    • setGamma

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

      public float getGamma()
      Get the gamma level.
      Returns:
      the gamma level for all RGB channels
      See Also:
    • initialize

      protected void initialize()
      Overrides:
      initialize in class TransferFilter
    • toString

      public String toString()
      Overrides:
      toString in class Object