Duplicate :
|
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
|