类 StampFilter

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

    public class StampFilter
    extends PointFilter
    A filter which produces a rubber-stamp type of effect by performing a thresholded blur.
    • 构造器详细资料

      • StampFilter

        public StampFilter()
        Construct a StampFilter.
      • StampFilter

        public StampFilter​(float threshold)
        Construct a StampFilter.
        参数:
        threshold - the threshold value
    • 方法详细资料

      • setRadius

        public void setRadius​(float radius)
        Set the radius of the effect.
        参数:
        radius - the radius min-value 0
        另请参阅:
        getRadius()
      • getRadius

        public float getRadius()
        Get the radius of the effect.
        返回:
        the radius
        另请参阅:
        setRadius(float)
      • setThreshold

        public void setThreshold​(float threshold)
        Set the threshold value.
        参数:
        threshold - the threshold value
        另请参阅:
        getThreshold()
      • getThreshold

        public float getThreshold()
        Get the threshold value.
        返回:
        the threshold value
        另请参阅:
        setThreshold(float)
      • setSoftness

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

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

        public void setWhite​(int white)
        Set the color to be used for pixels above the upper threshold.
        参数:
        white - the color
        另请参阅:
        getWhite()
      • getWhite

        public int getWhite()
        Get the color to be used for pixels above the upper threshold.
        返回:
        the color
        另请参阅:
        setWhite(int)
      • setBlack

        public void setBlack​(int black)
        Set the color to be used for pixels below the lower threshold.
        参数:
        black - the color
        另请参阅:
        getBlack()
      • getBlack

        public int getBlack()
        Set the color to be used for pixels below the lower threshold.
        返回:
        the color
        另请参阅:
        setBlack(int)
      • filter

        public java.awt.image.BufferedImage filter​(java.awt.image.BufferedImage src,
                                                   java.awt.image.BufferedImage dst)
        指定者:
        filter 在接口中 java.awt.image.BufferedImageOp
        覆盖:
        filter 在类中 PointFilter
      • filterRGB

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

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