471,339 Members | 1,461 Online
Bytes | Software Development & Data Engineering Community
Post +

Home Posts Topics Members FAQ

Join Bytes to post your question to a community of 471,339 software developers and data experts.

How to determine system color depth

How do I determine the system/Windows color depth? For example if the user
uses Control Panel\Display - Settings, and sets Color Quality to "Medium (16
bit)".

I want to choose which bitmap image to display, based upon the color quality
supported. I thought this would be in the environment class, but can't find
it.

Thanks.
Dale
Jul 21 '05 #1
2 1945
You'll have to P/Invoke:
http://groups.google.de/groups?selm=...%40tkmsftngp03

hope that helps..
Imran.

"Dale" <da******@foxcustomsoftware.com> wrote in message
news:UdDMd.265746$Xk.48016@pd7tw3no...
How do I determine the system/Windows color depth? For example if the
user
uses Control Panel\Display - Settings, and sets Color Quality to "Medium
(16
bit)".

I want to choose which bitmap image to display, based upon the color
quality
supported. I thought this would be in the environment class, but can't
find
it.

Thanks.
Dale

Jul 21 '05 #2
Thanks for the info and the example.

Dale
"Imran Koradia" <no****@microsoft.com> wrote in message
news:OB**************@TK2MSFTNGP12.phx.gbl...
You'll have to P/Invoke:
http://groups.google.de/groups?selm=...%40tkmsftngp03

hope that helps..
Imran.

"Dale" <da******@foxcustomsoftware.com> wrote in message
news:UdDMd.265746$Xk.48016@pd7tw3no...
How do I determine the system/Windows color depth? For example if the
user
uses Control Panel\Display - Settings, and sets Color Quality to "Medium
(16
bit)".

I want to choose which bitmap image to display, based upon the color
quality
supported. I thought this would be in the environment class, but can't
find
it.

Thanks.
Dale


Jul 21 '05 #3

This discussion thread is closed

Replies have been disabled for this discussion.

Similar topics

3 posts views Thread by lucpustjens | last post: by
18 posts views Thread by Christopher W. Douglas | last post: by
10 posts views Thread by Marc Jennings | last post: by
1 post views Thread by Dale | last post: by
2 posts views Thread by Onwuka Emeka | last post: by
13 posts views Thread by softwaredoug | last post: by
3 posts views Thread by =?Utf-8?B?RWR3aW4=?= | last post: by

By using Bytes.com and it's services, you agree to our Privacy Policy and Terms of Use.

To disable or enable advertisements and analytics tracking please visit the manage ads & tracking page.