I have a gradient rectangle, drawn with SWT graphical context.
How can I retrieve a color, which is used at a distinct point inside of the rectangle?
e.gc.setForeground(color_highlight_shadow);
e.gc.setBackground(color_normal_shadow);
e.gc.fillGradientRectangle(0, 1, 100, 100, false);
You can get it by copying the area (your pixel) into an image and extracting the RGB from this image: