类 HalftoneFilter

    • 构造器详细资料

      • 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​(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)