setRGB (ColorObject - Java)

Sets an RGB value to the closest Domino® color and HSL value.

Defined in

ColorObject

Syntax

public int setRGB(int red, int green, int blue)
    throws NotesException

Parameters

int red

Red component of the RGB value. Must be in the range 0-255.

int green

Green component of the RGB value. Must be in the range 0-255.

int blue

Blue component of the RGB value. Must be in the range 0-255.

Return value

int

Closest Domino® color to the RGB value.

Usage

SetRGB sets NotesColor, in addition to the return value, to the closest Domino® color.

SetRGB sets the RGB properties to the specifications of this method.

SetRGB sets the HSL properties to values that match the Domino® color.

Example