Color.brighter() and Color.darker() do not preserve alpha

XMLWordPrintable

    • Type: Bug
    • Resolution: Duplicate
    • Priority: P4
    • None
    • Affects Version/s: 1.2.1
    • Component/s: client-libs
    • None
    • 2d
    • generic
    • generic

      The methods java.awt.Color.brighter() and Color.darker() always return a Color object with an alpha value of 255 (fully opaque), regardless of the alpha value of the original Color. This is counter-intuitive and not explained by the spec. Given the current description of these methods, it would seem most reasonable for the alpha value to be preserved.

      See suggested fix.

      ###@###.### 2003-01-23

            Assignee:
            Unassigned
            Reporter:
            J. Duke
            Votes:
            0 Vote for this issue
            Watchers:
            1 Start watching this issue

              Created:
              Updated:
              Resolved:
              Imported:
              Indexed: