Bug 545032: [GTK] Implement native ImageLoader

Most ImageData's created on GTK have an RGB byte order, however some
exceptions do exist. Specifically, ImageData's created from JFace's
CompositeImageDescriptor can have a BGR byte order. Because of
this, it's necessary to check the PaletteData in ImageLoader.save().

If the PaletteData indicates a negative blue shift, we are dealing with
BGR byte ordering and must adjust the offsets accordingly.

Revert some smaller changes from the original ImageLoader patch, as they
are not needed (causes the white background on breadcrumb icons).

Verified with the relevant bug snippets, JUnits, and with the JDT icons
in a child Eclipse.

Change-Id: I8d6e1cea4c1559689e42dedf334c550435cd7533
Signed-off-by: Eric Williams <ericwill@redhat.com>
4 files changed
tree: 60e1b24b7abd22f622299ff2347e6e4d9993570f
  1. .gitignore
  2. CONTRIBUTING
  3. LICENSE
  4. NOTICE
  5. README.md
  6. bundles/
  7. examples/
  8. features/
  9. local-build/
  10. pom.xml
  11. tests/
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!