Determine color depth 
Author Message
 Determine color depth

Is there a way to quickly find out if the current display driver is
using 16-bit colour or above?

thanks
Matthew



Fri, 02 Nov 2001 03:00:00 GMT  
 Determine color depth

Quote:
>Is there a way to quickly find out if the current display driver is
>using 16-bit colour or above?

I use code kindly posted by someone else that looks like this:

'  Check to see if system is running in 256 colors

ChkPlanes = GetDeviceCaps(frmWelcome.hDC, 14)
ChkbitsPixel = GetDeviceCaps(frmWelcome.hDC, 12)
ChkcolorBits = ChkPlanes * ChkbitsPixel

' ChkcolorBits will be:
' 4  for 16-color,
' 8  for 256-color,
' 16 for 32K or 64K, and
' 24 or 32 for 16Million.

HTH

Duncan



Sat, 03 Nov 2001 03:00:00 GMT  
 
 [ 2 post ] 

 Relevant Pages 

1. How to Determine Color Depth?

2. Determining color depth?

3. How to Determine Color Depth?

4. Determining color depth?

5. How to Determine Color Depth?

6. How to Determine Color Depth?

7. How do I determine the display color depth?

8. Determining Color Pallette Depth

9. Determine system color depth?

10. Determining Color Pallette Depth

11. Determining Color Pallette Depth

12. determining display color depth in VB4?

 

 
Powered by phpBB® Forum Software