Class RescaleFilter

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

    public class RescaleFilter
    extends TransferFilter
    A filter which simply multiplies pixel values by a given scale factor.
    • Constructor Detail

      • RescaleFilter

        public RescaleFilter()
      • RescaleFilter

        public RescaleFilter​(float scale)
    • Method Detail

      • setScale

        public void setScale​(float scale)
        Specifies the scale factor.
        Parameters:
        scale - the scale factor. min-value: 1, maximum value: 5+
        See Also:
        getScale()
      • getScale

        public float getScale()
        Returns the scale factor.
        Returns:
        the scale factor.
        See Also:
        setScale(float)
      • toString

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