-
Returns an instance of RGB for the given JSON representation.
Returns the JSON representation for the given RGB.
Returns the JSON representation for the given RGB with an additional alpha (opacity) value.
-
the RGB values for an indexed palette, where the
indices of the array correspond to pixel values
the RGB component of the RGBA
Returns an RGB
representing the receiver.
Returns an RGB
corresponding to the given pixel value.
Returns an array of RGB
s which comprise the
indexed color table of the receiver, or null if the receiver
has a direct color model.
Returns all the RGB values in the receiver if it is an
indexed palette, or null if it is a direct palette.
int
Returns the pixel value corresponding to the given RGB
.
Constructs a new instance of this class given a device and an
RGB
describing the desired red, green and blue values.
Constructs a new instance of this class given a device, an
RGB
describing the desired red, green and blue values,
alpha specifying the level of transparency.
Constructs a new indexed palette given an array of RGB values.
-