类 OilFilter

    • 构造器详细资料

      • OilFilter

        public OilFilter()
    • 方法详细资料

      • setRange

        public void setRange​(int range)
        Set the range of the effect in pixels.
        参数:
        range - the range
        另请参阅:
        getRange()
      • getRange

        public int getRange()
        Get the range of the effect in pixels.
        返回:
        the range
        另请参阅:
        setRange(int)
      • setLevels

        public void setLevels​(int levels)
        Set the number of levels for the effect.
        参数:
        levels - the number of levels
        另请参阅:
        getLevels()
      • getLevels

        public int getLevels()
        Get the number of levels for the effect.
        返回:
        the number of levels
        另请参阅:
        setLevels(int)
      • filterPixels

        protected int[] filterPixels​(int width,
                                     int height,
                                     int[] inPixels,
                                     Rectangle transformedSpace)
        从类复制的说明: WholeImageFilter
        Actually filter the pixels.
        指定者:
        filterPixels 在类中 WholeImageFilter
        参数:
        width - the image width
        height - the image height
        inPixels - the image pixels
        transformedSpace - the output bounds
        返回:
        the output pixels