Skip to main content

Notice: this Wiki will be going read only early in 2024 and edits will no longer be possible. Please see: https://gitlab.eclipse.org/eclipsefdn/helpdesk/-/wikis/Wiki-shutdown-plan for the plan.

Jump to: navigation, search

UIGraphics : Specifications : FileFormats

Revision as of 17:23, 23 February 2007 by Aiproulx.ca.ibm.com (Talk | contribs)

Return to the main UI Graphics section on the UI Best Practices page.


GIF - Graphics Interchange Format

GIF is the most common file format used in Eclipse-based tools. GIF images are raster-based, can have transparency, and tend to use a small amount of memory and disk space. Each GIF file contains a color palette of up to 256 individual colors. This format is most suited to images that use flat colors or have a limited number of colors. It is not a suitable format for photographic images.

The lossless compression method used in the GIF format suggests that the compressed image is identical to original image. However, because GIF is not capable of full color, images than contain greater than 256 colors will loose some of the original color through dithering, which creates the illusion of greater color depth by approximating the original colors used. Because of their physical size, 16 x 16 pixel icons can only accommodate 256 individual colors, so dithering is never a concern. However, it is something to be aware of when creating larger images.

GIF is used for the following types of graphics in Eclipse-based tooling:

  • Product
  • View (includes Perspective and Fast View)
  • Toolbar (includes Toolbar Wizard)
  • Local Toolbar
  • Model Object
  • Object Overlay (includes Underlay)
  • Wizard Banner
  • Table
  • Palette
  • Diagram (exceptions noted below under SVG)
  • Progress Indicator
  • Miscellaneous (there might be exceptions)


SVG - Scalable Vector Graphics format

SVG is a language for describing both two-dimensional and animated vector-based graphics in XML. One of its distinguishing attributes is its scalability: One size of an image will scale nicely to unlimited sizes. While there is great potential in using SVG for user interface graphics, especially on palettes and in diagrams, it currently has limited use in the tooling.

SVG is used for the following types of graphics in Eclipse-based tooling:

  • Diagram (Action Bar only)

In designing graphics for SVG output, use a minimal number of elements in each image, especially for small 16 x 16 icons. This will help ensure image clarity, and fewer elements will keep the file size small.


BMP - Bit map format

BMP is the standard Microsoft Windows raster image format.

BMP is used for the following types of graphics in Eclipse-based tooling:

  • Pointer
  • Cursor


ICO - Icon format

ICO format is used on the Microsoft Windows operating system and is required for product install and launch icons, including desktop, treeview, and menu icons.

ICO is used for the following type of graphics in Eclipse-based tooling:

  • Product icons (Windows)


XPM - X PixMap format

XPM is an ASCII image format that supports transparent color. This image format is used on Linux and is required for product install and launch icons, including desktop, treeview, and menu icons.

XPM is used for the following type of graphics in Eclipse-based tooling:

  • Product icons (Linux)

Back to the top