Microsoft SDK for Java

Color.getBrightness

Retrieves the HSB brightness for this color.

Syntax

public float getBrightness()

Return Value

Returns the color's brightness, where 0 represents black and 1 represents white.

See Also   getHue, getSaturation

© 1999 Microsoft Corporation. All rights reserved. Terms of use.