类 OpacityFilter

    • 构造器详细资料

      • OpacityFilter

        public OpacityFilter()
        Construct an OpacityFilter with 50% opacity.
      • OpacityFilter

        public OpacityFilter​(int opacity)
        Construct an OpacityFilter with the given opacity (alpha).
        参数:
        opacity - the opacity (alpha) in the range 0..255
    • 方法详细资料

      • setOpacity

        public void setOpacity​(int opacity)
        Set the opacity.
        参数:
        opacity - the opacity (alpha) in the range 0..255
        另请参阅:
        getOpacity()
      • getOpacity

        public int getOpacity()
        Get the opacity setting.
        返回:
        the opacity
        另请参阅:
        setOpacity(int)
      • filterRGB

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