• Status: Solved
  • Priority: Medium
  • Security: Public
  • Views: 160
  • Last Modified:

Delphi1: Colordepth

How can i get the actual color depth of the screen?
I expect a result like 8 bits or 24 bits
0
ponti
Asked:
ponti
1 Solution
 
erajojCommented:
Hi,
Here's how to do it:
  BitsPerPixel := GetDeviceCaps( GetDC( 0 ), BITSPIXEL );

/// John
0

Featured Post

The 14th Annual Expert Award Winners

The results are in! Meet the top members of our 2017 Expert Awards. Congratulations to all who qualified!

Tackle projects and never again get stuck behind a technical roadblock.
Join Now