类 WoodFilter

  • 所有已实现的接口:
    java.awt.image.BufferedImageOp, java.lang.Cloneable

    public class WoodFilter
    extends PointFilter
    A filter which produces a simulated wood texture. This is a bit of a hack, but might be usefult to some people.
    • 构造器详细资料

      • WoodFilter

        public WoodFilter()
        Construct a WoodFilter.
    • 方法详细资料

      • setRings

        public void setRings​(float rings)
        Specifies the rings value.
        参数:
        rings - the rings value. min-value 0 max-value 1
        另请参阅:
        getRings()
      • getRings

        public float getRings()
        Returns the rings value.
        返回:
        the rings value.
        另请参阅:
        setRings(float)
      • setScale

        public void setScale​(float scale)
        Specifies the scale of the texture.
        参数:
        scale - the scale of the texture. min-value 1 max-value 300+
        另请参阅:
        getScale()
      • getScale

        public float getScale()
        Returns the scale of the texture.
        返回:
        the scale of the texture.
        另请参阅:
        setScale(float)
      • setStretch

        public void setStretch​(float stretch)
        Specifies the stretch factor of the texture.
        参数:
        stretch - the stretch factor of the texture. min-value 1 max-value 50+
        另请参阅:
        getStretch()
      • getStretch

        public float getStretch()
        Returns the stretch factor of the texture.
        返回:
        the stretch factor of the texture.
        另请参阅:
        setStretch(float)
      • setAngle

        public void setAngle​(float angle)
        Specifies the angle of the texture.
        参数:
        angle - the angle of the texture.
        另请参阅:
        getAngle()
      • getAngle

        public float getAngle()
        Returns the angle of the texture.
        返回:
        the angle of the texture.
        另请参阅:
        setAngle(float)
      • setTurbulence

        public void setTurbulence​(float turbulence)
        Specifies the turbulence of the texture.
        参数:
        turbulence - the turbulence of the texture. min-value 0 max-value 1
        另请参阅:
        getTurbulence()
      • getTurbulence

        public float getTurbulence()
        Returns the turbulence of the texture.
        返回:
        the turbulence of the texture.
        另请参阅:
        setTurbulence(float)
      • setFibres

        public void setFibres​(float fibres)
        Specifies the amount of fibres in the texture.
        参数:
        fibres - the amount of fibres in the texture. min-value 0 max-value 1
        另请参阅:
        getFibres()
      • getFibres

        public float getFibres()
        Returns the amount of fibres in the texture.
        返回:
        the amount of fibres in the texture.
        另请参阅:
        setFibres(float)
      • setGain

        public void setGain​(float gain)
        Specifies the gain of the texture.
        参数:
        gain - the gain of the texture. min-value 0 max-value 1
        另请参阅:
        getGain()
      • getGain

        public float getGain()
        Returns the gain of the texture.
        返回:
        the gain of the texture.
        另请参阅:
        setGain(float)
      • setColormap

        public void setColormap​(Colormap colormap)
        Set the colormap to be used for the filter.
        参数:
        colormap - the colormap
        另请参阅:
        getColormap()
      • filterRGB

        public int filterRGB​(int x,
                             int y,
                             int rgb)
        指定者:
        filterRGB 在类中 PointFilter
      • toString

        public java.lang.String toString()
        覆盖:
        toString 在类中 java.lang.Object