类 HalftoneFilter

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

    public class HalftoneFilter
    extends AbstractBufferedImageOp
    A filter which uses a another image as a ask to produce a halftoning effect.
    • 构造器详细资料

      • HalftoneFilter

        public HalftoneFilter()
    • 方法详细资料

      • 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)
      • setMask

        public void setMask​(java.awt.image.BufferedImage mask)
        Set the halftone mask.
        参数:
        mask - the mask
        另请参阅:
        getMask()
      • setInvert

        public void setInvert​(boolean invert)
      • getInvert

        public boolean getInvert()
      • setMonochrome

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

        public boolean getMonochrome()
        Get whether to do monochrome halftoning.
        返回:
        true for monochrome halftoning
        另请参阅:
        setMonochrome(boolean)
      • filter

        public java.awt.image.BufferedImage filter​(java.awt.image.BufferedImage src,
                                                   java.awt.image.BufferedImage dst)
      • toString

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