类 NoiseFilter

    • 字段详细资料

      • GAUSSIAN

        public static final int GAUSSIAN
        Gaussian distribution for the noise.
        另请参阅:
        常量字段值
      • UNIFORM

        public static final int UNIFORM
        Uniform distribution for the noise.
        另请参阅:
        常量字段值
    • 构造器详细资料

      • NoiseFilter

        public NoiseFilter()
    • 方法详细资料

      • setAmount

        public void setAmount​(int amount)
        Set the amount of effect.
        参数:
        amount - the amount min-value 0 max-value 1
        另请参阅:
        getAmount()
      • getAmount

        public int getAmount()
        Get the amount of noise.
        返回:
        the amount
        另请参阅:
        setAmount(int)
      • setDistribution

        public void setDistribution​(int distribution)
        Set the distribution of the noise.
        参数:
        distribution - the distribution
        另请参阅:
        getDistribution()
      • getDistribution

        public int getDistribution()
        Get the distribution of the noise.
        返回:
        the distribution
        另请参阅:
        setDistribution(int)
      • setMonochrome

        public void setMonochrome​(boolean monochrome)
        Set whether to use monochrome noise.
        参数:
        monochrome - true for monochrome noise
        另请参阅:
        getMonochrome()
      • getMonochrome

        public boolean getMonochrome()
        Get whether to use monochrome noise.
        返回:
        true for monochrome noise
        另请参阅:
        setMonochrome(boolean)
      • setDensity

        public void setDensity​(float density)
        Set the density of the noise.
        参数:
        density - the density
        另请参阅:
        getDensity()
      • getDensity

        public float getDensity()
        Get the density of the noise.
        返回:
        the density
        另请参阅:
        setDensity(float)
      • filterRGB

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