Package | Description |
---|---|
org.eclipse.swt.custom | |
org.eclipse.swt.graphics | |
org.eclipse.swt.internal.image | |
org.eclipse.swt.widgets |
Modifier and Type | Field and Description |
---|---|
static RGB |
ViewForm.borderInsideRGB
Deprecated.
|
static RGB |
CTabFolder.borderInsideRGB
Deprecated.
drop shadow border is no longer drawn in 3.0
|
static RGB |
ViewForm.borderMiddleRGB
Deprecated.
|
static RGB |
CTabFolder.borderMiddleRGB
Deprecated.
drop shadow border is no longer drawn in 3.0
|
static RGB |
ViewForm.borderOutsideRGB
Deprecated.
|
static RGB |
CTabFolder.borderOutsideRGB
Deprecated.
drop shadow border is no longer drawn in 3.0
|
Modifier and Type | Field and Description |
---|---|
RGB[] |
PaletteData.colors
the RGB values for an indexed palette, where the
indices of the array correspond to pixel values
|
RGB |
RGBA.rgb
the RGB component of the RGBA
|
Modifier and Type | Method and Description |
---|---|
RGB |
Color.getRGB()
Returns an
RGB representing the receiver. |
RGB |
PaletteData.getRGB(int pixel)
Returns an
RGB corresponding to the given pixel value. |
RGB[] |
PaletteData.getRGBs()
Returns all the RGB values in the receiver if it is an
indexed palette, or null if it is a direct palette.
|
RGB[] |
ImageData.getRGBs()
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. |
Modifier and Type | Method and Description |
---|---|
int |
PaletteData.getPixel(RGB rgb)
Returns the pixel value corresponding to the given
RGB . |
Constructor and Description |
---|
Color(Device device,
RGB rgb)
Constructs a new instance of this class given a device and an
RGB describing the desired red, green and blue values. |
Color(Device device,
RGB rgb,
int alpha)
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. |
PaletteData(RGB... colors)
Constructs a new indexed palette given an array of RGB values.
|
Modifier and Type | Field and Description |
---|---|
static RGB[] |
JPEGFileFormat.RGB16 |
Modifier and Type | Method and Description |
---|---|
RGB |
FontDialog.getRGB()
Returns an RGB describing the color that was selected
in the dialog, or null if none is available.
|
RGB |
ColorDialog.getRGB()
Returns the currently selected color in the receiver.
|
RGB[] |
ColorDialog.getRGBs()
Returns an array of
RGB s which are the list of
custom colors selected by the user in the receiver, or null
if no custom colors were selected. |
RGB |
ColorDialog.open()
Makes the receiver visible and brings it to the front
of the display.
|
Modifier and Type | Method and Description |
---|---|
void |
FontDialog.setRGB(RGB rgb)
Sets the RGB describing the color to be selected by default
in the dialog, or null to let the platform choose one.
|
void |
ColorDialog.setRGB(RGB rgb)
Sets the receiver's selected color to be the argument.
|
void |
ColorDialog.setRGBs(RGB[] rgbs)
Sets the receiver's list of custom colors to be the given array
of
RGB s, which may be null to let the platform select
a default when open() is called. |
Copyright © 2017. All Rights Reserved.