类 MarbleFilter

    • 构造器详细资料

      • MarbleFilter

        public MarbleFilter()
    • 方法详细资料

      • setXScale

        public void setXScale​(float xScale)
        Set the X scale of the effect.
        参数:
        xScale - the scale.
        另请参阅:
        getXScale()
      • getXScale

        public float getXScale()
        Get the X scale of the effect.
        返回:
        the scale.
        另请参阅:
        setXScale(float)
      • setYScale

        public void setYScale​(float yScale)
        Set the Y scale of the effect.
        参数:
        yScale - the scale.
        另请参阅:
        getYScale()
      • getYScale

        public float getYScale()
        Get the Y scale of the effect.
        返回:
        the scale.
        另请参阅:
        setYScale(float)
      • setAmount

        public void setAmount​(float amount)
        Set the amount of effect.
        参数:
        amount - the amount min-value 0 max-value 1
        另请参阅:
        getAmount()
      • getAmount

        public float getAmount()
        Get the amount of effect.
        返回:
        the amount
        另请参阅:
        setAmount(float)
      • setTurbulence

        public void setTurbulence​(float turbulence)
        Specifies the turbulence of the effect.
        参数:
        turbulence - the turbulence of the effect. min-value 0 max-value 1
        另请参阅:
        getTurbulence()
      • getTurbulence

        public float getTurbulence()
        Returns the turbulence of the effect.
        返回:
        the turbulence of the effect.
        另请参阅:
        setTurbulence(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