Microsoft SDK for Java

Color.getRed

Retrieves the red component of the color.

Syntax

public int getRed()

Return Value

Returns the red component of the color.

Remarks

This method works identically for Color objects based on system colors or on RGB triplets.

See Also   getBlue, getGreen

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