Color.this

Constructs a new instance of this class given a device and an <code>RGB</code> describing the desired red, green and blue values. On limited color devices, the color instance created by this call may not have the same RGB values as the ones specified by the argument. The RGB values on the returned instance will be the color values of the operating system color. <p> You must dispose the color when it is no longer required. </p>

@param device the device on which to allocate the color @param rgb the RGB values of the desired color

@exception IllegalArgumentException <ul> <li>ERROR_NULL_ARGUMENT - if device is null and there is no current device</li> <li>ERROR_NULL_ARGUMENT - if the rgb argument is null</li> <li>ERROR_INVALID_ARGUMENT - if the red, green or blue components of the argument are not between 0 and 255</li> </ul>

@see #dispose

  1. this(Device device, int red, int green, int blue)
  2. this(Device device, in RGB rgb)
    class Color
    this

Meta