类 ShapeFilter

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

    public class ShapeFilter
    extends WholeImageFilter
    • 构造器详细资料

      • ShapeFilter

        public ShapeFilter()
    • 方法详细资料

      • setFactor

        public void setFactor​(float factor)
      • getFactor

        public float getFactor()
      • setColormap

        public void setColormap​(Colormap colormap)
        Set the colormap to be used for the filter.
        参数:
        colormap - the colormap
        另请参阅:
        getColormap()
      • setUseAlpha

        public void setUseAlpha​(boolean useAlpha)
      • getUseAlpha

        public boolean getUseAlpha()
      • setType

        public void setType​(int type)
      • getType

        public int getType()
      • setInvert

        public void setInvert​(boolean invert)
      • getInvert

        public boolean getInvert()
      • setMerge

        public void setMerge​(boolean merge)
      • getMerge

        public boolean getMerge()
      • filterPixels

        protected int[] filterPixels​(int width,
                                     int height,
                                     int[] inPixels,
                                     java.awt.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
      • distanceMap

        public int distanceMap​(int[] map,
                               int width,
                               int height)
      • toString

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