类 DissolveFilter

  • 所有已实现的接口:
    BufferedImageOp, Cloneable

    public class DissolveFilter
    extends PointFilter
    A filter which "dissolves" an image by thresholding the alpha channel with random numbers.
    • 构造器详细资料

      • DissolveFilter

        public DissolveFilter()
    • 方法详细资料

      • setDensity

        public void setDensity​(float density)
        Set the density of the image in the range 0..1.
        参数:
        density - the density min-value 0 max-value 1
        另请参阅:
        getDensity()
      • getDensity

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

        public void setSoftness​(float softness)
        Set the softness of the dissolve in the range 0..1.
        参数:
        softness - the softness min-value 0 max-value 1
        另请参阅:
        getSoftness()
      • getSoftness

        public float getSoftness()
        Get the softness of the dissolve.
        返回:
        the softness
        另请参阅:
        setSoftness(float)
      • filterRGB

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