I am using following code to draw scaled image in PaintListener.
e.gc.drawImage(image,
0, 0, w, h,
0, 0, scaledWidth, scaledHeight
);
I want to draw image in gray color.
What could be done for that? Does drawImage support some special parameters for that or I should better prepare and convert original image to be grayed.
I need to convert it either to greyed-out/disabled using Image class:
SWT.IMAGE_DISABLEalso can be used instead ofSWT.IMAGE_GRAY