Bug 566545 - [Win32] Image may reduce quality of 8-bit ImageData

Creation of an Image from existing ImageData can result in reduction of
the actual image quality. Image will convert the data into a format
which Windows can understand. An 8-bit direct color image was always
converted into a 16-bit direct color image.

The Windows compatible 16-bit image is fixed to use 5 distinct bits for
each channel red, green and blue. However the ImageData used to create
the Image does not apply such restrictions. It is possible to create an
8-bit ImageData where each color use the same 8 bit which results in a
gray-scale image. Such an image cannot converted into 16-bit because if
each channel use 8 distinct bits it requires 24 bit to encode the full
range of 256 different grays the source data can contain.

Change-Id: Ic557068a1d72e5fcd2e3458c8ade6917e01e6db7
Signed-off-by: Paul Pazderski <paul-eclipse@ppazderski.de>
4 files changed
tree: 62f7cf9d27eb2c7dc00ca2864d37fed255a76b17
  1. bundles/
  2. container/
  3. examples/
  4. features/
  5. local-build/
  6. tests/
  7. .gitignore
  8. CONTRIBUTING
  9. LICENSE
  10. NOTICE
  11. pom.xml
  12. README.md
README.md

Contributing to SWT

Thanks for your interest in this project.

Developer resources:

See the following description for how to contribute a feature or a bug fix to SWT.

Information regarding source code management, builds, coding standards, and more and be found under the following link.

Contributor License Agreement:

Before your contribution can be accepted by the project, you need to create and electronically sign the Eclipse Foundation Contributor License Agreement (CLA).

Contact:

Contact the project developers via the project's “dev” list.

Search for bugs:

This project uses Bugzilla to track ongoing development and issues.

Create a new bug:

Be sure to search for existing bugs before you create another one. Remember that contributions are always welcome!