Uploaded image for project: 'JDK'
  1. JDK
  2. JDK-4807378

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

    • Icon: Bug Bug
    • Resolution: Duplicate
    • Icon: P4 P4
    • None
    • 1.2.1
    • 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

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

              Created:
              Updated:
              Resolved:
              Imported:
              Indexed: