Class TintFilter.ScaledTintFilter

  • All Implemented Interfaces:
    TintingFilter, java.awt.image.BufferedImageOp
    Enclosing class:
    TintFilter

    public static class TintFilter.ScaledTintFilter
    extends TintFilter
    A TintFilter that scales its saturation and brightness. For example, if the scale is 2, then a factor of 0.5 is scaled to 1. This is useful when reading values from a TintPanel.
    • Field Detail

      • sScale

        protected float sScale
      • bScale

        protected float bScale
    • Constructor Detail

      • ScaledTintFilter

        public ScaledTintFilter()
      • ScaledTintFilter

        public ScaledTintFilter​(float h,
                                float s,
                                float b)
      • ScaledTintFilter

        public ScaledTintFilter​(float h,
                                float s,
                                float b,
                                float sScale,
                                float bScale)
    • Method Detail

      • getSScale

        public final float getSScale()
      • setSScale

        public final void setSScale​(float sScale)
      • getBScale

        public final float getBScale()
      • setBScale

        public final void setBScale​(float bScale)
      • filterPixels

        public void filterPixels​(int[] argb)