Skip to main content

Color and Images

  • Chapter
Fundamentals of X Programming

Part of the book series: Series in Computer Science ((SCS))

  • 122 Accesses

Conclusions

We discuss the Xlib facilities for creating and using colormaps and for displaying raster images, including the XImage structure. Full-color or gray-scale images are large consumers of memory, and these usually demand their own colormaps. Displaying full pictures in color (as opposed to using a gray scale) on 8-bit displays is a challenge, but it can be done with color halftoning.

Handling colormaps with the X Window System is more complicated than with many earlier graphics systems because X tries to preserve the proper appearance for all windows in a display, so it imposes various restrictions on using colormaps. This approach is reasonable for GUIs, but it creates complications for graphics- and image-processing applications where user attention may be focused only on one or two windows. The simple design of the X server causes additional difficulties. If a display with 24 or more bits per pixel is available, displaying full pictures in color at the same time as other applications presents no problem.

This is a preview of subscription content, log in via an institution to check access.

Access this chapter

eBook
USD 16.99
Price excludes VAT (USA)
  • Available as PDF
  • Read on any device
  • Instant download
  • Own it forever
Softcover Book
USD 54.99
Price excludes VAT (USA)
  • Compact, lightweight edition
  • Dispatched in 3 to 5 business days
  • Free shipping worldwide - see info

Tax calculation will be finalised at checkout

Purchases are for personal use only

Institutional subscriptions

Preview

Unable to display preview. Download preview PDF.

Unable to display preview. Download preview PDF.

Rights and permissions

Reprints and permissions

Copyright information

© 2002 Kluwer Academic Publishers

About this chapter

Cite this chapter

(2002). Color and Images. In: Fundamentals of X Programming. Series in Computer Science. Springer, Boston, MA. https://doi.org/10.1007/0-306-46968-5_9

Download citation

  • DOI: https://doi.org/10.1007/0-306-46968-5_9

  • Publisher Name: Springer, Boston, MA

  • Print ISBN: 978-0-306-46065-4

  • Online ISBN: 978-0-306-46968-8

  • eBook Packages: Springer Book Archive

Publish with us

Policies and ethics