Community
Participate
Working Groups
Currently we miss the two styles for creating new images. We refer to them in the JavaDoc of Image(Device, Image, int) and they are used in several applications.
These style flags modify images using native calls, which is not possible in RAP. However, decolorizing images could be simple operation on the image data. Contributions are welcome here...
As far as I can see, SWT is not using native calls anymore. This means that the SWT code for IMAGE_GRAY and IMAGE_DISABLED can used in RAP with two lines changed. I'll append a patch for this.
Created attachment 244406 [details] Patched Image class to add support for IMAGE_GRAY and IMAGE_DISABLED Copied from original SWT
Created attachment 244407 [details] SWT class change adding two constants IMAGE_GRAY and IMAGE_DISABLED Copied from original SWT. May need to add @Since annotation.
Thanks for your contribution! Would you mind to push your change directly to Gerrit [1]? You'll have to sign your CLA [2] in order to get it approved. [1] See https://www.eclipse.org/rap/source/ [2] https://wiki.eclipse.org/CLA
Implemented with change https://git.eclipse.org/r/#/c/36977/.