Microsoft SDK for Java

Color.getRGB

Retrieves the entire RGB triplet for the color.

Syntax

public int getRGB()

Return Value

Returns the RGB triplet value.

Remarks

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

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