Interface TintingFilter

    • Method Summary

      All Methods Instance Methods Abstract Methods 
      Modifier and Type Method Description
      java.awt.image.BufferedImage filter​(java.awt.image.BufferedImage source, java.awt.image.BufferedImage dest)
      Apply the filter to source, storing the result in dest.
      float getBFactor()
      Returns the brightness adjustment factor.
      float getHFactor()
      Returns the hue adjustment factor.
      float getSFactor()
      Returns the saturation adjustment factor.
      boolean isIdentity()
      Returns true if applying this filter would have no effect.
      void setFactors​(float h, float s, float b)
      Sets the factors that will be used during tinting.
      • Methods inherited from interface java.awt.image.BufferedImageOp

        createCompatibleDestImage, getBounds2D, getPoint2D, getRenderingHints
    • Method Detail

      • getHFactor

        float getHFactor()
        Returns the hue adjustment factor.
        Returns:
        hue factor
      • getSFactor

        float getSFactor()
        Returns the saturation adjustment factor.
        Returns:
        saturation factor
      • getBFactor

        float getBFactor()
        Returns the brightness adjustment factor.
        Returns:
        brightness factor
      • setFactors

        void setFactors​(float h,
                        float s,
                        float b)
        Sets the factors that will be used during tinting. The exact effect depends on the particular filter.
        Parameters:
        h - hue factor
        s - saturation factor
        b - brightness factor
      • isIdentity

        boolean isIdentity()
        Returns true if applying this filter would have no effect. This can be used as an optimization hint.
        Returns:
        true if a filtered image would not change
      • filter

        java.awt.image.BufferedImage filter​(java.awt.image.BufferedImage source,
                                            java.awt.image.BufferedImage dest)
        Apply the filter to source, storing the result in dest.
        Specified by:
        filter in interface java.awt.image.BufferedImageOp
        Parameters:
        source - the source image
        dest - the destination image (may be null)
        Returns:
        the destination image