• Create BookmarkCreate Bookmark
  • Create Note or TagCreate Note or Tag
  • PrintPrint
Share this Page URL
Help

Chapter 5. Display > Display Depth and DPI

5.13. Display Depth and DPI

SWT runs on many different display devices. These devices can be different sizes and support different numbers of colors. Application programmers can query the display in order to use the best possible colors for the device.

The bit depth of a graphics device is the number of bits it takes to represent each color on the device. It is also called bits per pixel. The bit depth of a device is usually one of 1, 8, 15, 16, 24, or 32. Application programmers can query the depth of a device using getDepth().


PREVIEW

                                                                          

Not a subscriber?

Start A Free Trial


  
  • Creative Edge
  • Create BookmarkCreate Bookmark
  • Create Note or TagCreate Note or Tag
  • PrintPrint