类 PolarFilter

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

    public class PolarFilter
    extends TransformFilter
    A filter which distorts and image by performing coordinate conversions between rectangular and polar coordinates.
    • 字段详细资料

      • RECT_TO_POLAR

        public static final int RECT_TO_POLAR
        Convert from rectangular to polar coordinates.
        另请参阅:
        常量字段值
      • POLAR_TO_RECT

        public static final int POLAR_TO_RECT
        Convert from polar to rectangular coordinates.
        另请参阅:
        常量字段值
      • INVERT_IN_CIRCLE

        public static final int INVERT_IN_CIRCLE
        Invert the image in a circle.
        另请参阅:
        常量字段值
    • 构造器详细资料

      • PolarFilter

        public PolarFilter()
        Construct a PolarFilter.
      • PolarFilter

        public PolarFilter​(int type)
        Construct a PolarFilter.
        参数:
        type - the distortion type
    • 方法详细资料

      • filter

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

        public void setType​(int type)
        Set the distortion type.
        参数:
        type - the distortion type
        另请参阅:
        getType()
      • getType

        public int getType()
        Get the distortion type.
        返回:
        the distortion type
        另请参阅:
        setType(int)
      • 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
      • toString

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