To create an image that duplicates another image, or that has a disabled or a grayscale look, use the constructor that takes an Image and a flag:
Image image = new Image(display, otherImage, flag);
The possible values for flag.
Constant | Description |
SWT.IMAGE_COPY | Create an exact copy of the image |
SWT.IMAGE_DISABLE | Create an image that has a disabled look |
SWT.IMAGE_GRAY | Create an image that has the grayscale look |