|ColorDialog and Wrong Colors [message #521179]
||Tue, 16 March 2010 16:21
| Rick Hugie
Registered: March 2010
I'm using the org.eclipse.swt.widgets.ColorDialog picker to select a color. I then use that RGB to create a Color object that I pass into my figure as the background color.|
What I am seeing is that the color I select is different than the color that gets painted in my background. When I take that color and convert it back to RGB to open the picker it shows it as being the one I originally chose.
In order to create my color object I am doing
new Color(Display.getDefault(), rgb.red, rgb.green, rgb.blue);
Any ideas where my issue is? I get identical results on Windows 7 and Ubuntu.
Thanks for your help
Powered by FUDForum
. Page generated in 0.02415 seconds