类 TritoneFilter

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

    public class TritoneFilter
    extends PointFilter
    A filter which performs a tritone conversion on an image. Given three colors for shadows, midtones and highlights, it converts the image to grayscale and then applies a color mapping based on the colors.
    • 构造器详细资料

      • TritoneFilter

        public TritoneFilter()
    • 方法详细资料

      • filter

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

        public int filterRGB​(int x,
                             int y,
                             int rgb)
        指定者:
        filterRGB 在类中 PointFilter
      • setShadowColor

        public void setShadowColor​(int shadowColor)
        Set the shadow color.
        参数:
        shadowColor - the shadow color
        另请参阅:
        getShadowColor()
      • getShadowColor

        public int getShadowColor()
        Get the shadow color.
        返回:
        the shadow color
        另请参阅:
        setShadowColor(int)
      • setMidColor

        public void setMidColor​(int midColor)
        Set the mid color.
        参数:
        midColor - the mid color
      • getMidColor

        public int getMidColor()
        Get the mid color.
        返回:
        the mid color
      • setHighColor

        public void setHighColor​(int highColor)
        Set the high color.
        参数:
        highColor - the high color
      • getHighColor

        public int getHighColor()
        Get the high color.
        返回:
        the high color
      • toString

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