类 DiffuseFilter

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

    public class DiffuseFilter
    extends TransformFilter
    This filter diffuses an image by moving its pixels in random directions.
    • 构造器详细资料

      • DiffuseFilter

        public DiffuseFilter()
    • 方法详细资料

      • setScale

        public void setScale​(float scale)
        Specifies the scale of the texture.
        参数:
        scale - the scale of the texture. min-value 1 max-value 100+
        另请参阅:
        getScale()
      • getScale

        public float getScale()
        Returns the scale of the texture.
        返回:
        the scale of the texture.
        另请参阅:
        setScale(float)
      • transformInverse

        protected void transformInverse​(int x,
                                        int y,
                                        float[] out)
        从类复制的说明: TransformFilter
        Inverse transform a point. This method needs to be overriden by all subclasses.
        指定者:
        transformInverse 在类中 TransformFilter
        参数:
        x - the X position of the pixel in the output image
        y - the Y position of the pixel in the output image
        out - the position of the pixel in the input image
      • filter

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

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