473,395 Members | 1,969 Online
Bytes | Software Development & Data Engineering Community
Post Job

Home Posts Topics Members FAQ

Join Bytes to post your question to a community of 473,395 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 2036
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 thread has been closed and replies have been disabled. Please start a new discussion.

Similar topics

3
by: lucpustjens | last post by:
Hello, I want te determine the client operating system, because I need to kno the default cookie directory. If there is a way to determine the cooki directory directly, than it is also good. ...
18
by: Christopher W. Douglas | last post by:
I am writing a VB.NET application in Visual Studio 2003. I have written a method that handles several events, such as closing a form and changing the visible status of a form. I have some code...
10
by: Marc Jennings | last post by:
Hi there, Can anyone point out any really obvious flaws in the methodology below to determine the likely encoding of a file, please? I know the number of types of encoding is small, but that is...
1
by: Dale | last post by:
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...
2
by: Onwuka Emeka | last post by:
is there a way to reduce or modify the color depth of a jpeg image, i currently need to programatically change the color depth of a jpeg image from 24bits to 8bits. any help would be appreciated
13
by: softwaredoug | last post by:
I can't see to easily find this on google or in a newsgroup Is there a standard function/macro/whatever you can call and determine the distance in a C program how deep one is in the C call stack...
0
by: Killer42 | last post by:
This simple function may be called to determine the colour "depth" of the display, using the GetDeviceCaps API. Private Declare Function GetDeviceCaps Lib "GDI32" (ByVal hDC As Long, ByVal nIndex...
2
by: Gentr1 | last post by:
Hi everybody! I am presently working on a Genetic Programming API in python. I have a bit of a problem at the moment... For some specific reasons, I am using nested lists data structure to...
3
by: =?Utf-8?B?RWR3aW4=?= | last post by:
What I am trying to do is come up with a way to determine how many unique extensions there are within a directory and its sub directories. Within the loop that recurses root folder, I am...
0
by: ryjfgjl | last post by:
In our work, we often receive Excel tables with data in the same format. If we want to analyze these data, it can be difficult to analyze them because the data is spread across multiple Excel files...
0
by: emmanuelkatto | last post by:
Hi All, I am Emmanuel katto from Uganda. I want to ask what challenges you've faced while migrating a website to cloud. Please let me know. Thanks! Emmanuel
0
BarryA
by: BarryA | last post by:
What are the essential steps and strategies outlined in the Data Structures and Algorithms (DSA) roadmap for aspiring data scientists? How can individuals effectively utilize this roadmap to progress...
0
by: Hystou | last post by:
There are some requirements for setting up RAID: 1. The motherboard and BIOS support RAID configuration. 2. The motherboard has 2 or more available SATA protocol SSD/HDD slots (including MSATA, M.2...
0
by: Hystou | last post by:
Most computers default to English, but sometimes we require a different language, especially when relocating. Forgot to request a specific language before your computer shipped? No problem! You can...
0
Oralloy
by: Oralloy | last post by:
Hello folks, I am unable to find appropriate documentation on the type promotion of bit-fields when using the generalised comparison operator "<=>". The problem is that using the GNU compilers,...
0
jinu1996
by: jinu1996 | last post by:
In today's digital age, having a compelling online presence is paramount for businesses aiming to thrive in a competitive landscape. At the heart of this digital strategy lies an intricately woven...
0
tracyyun
by: tracyyun | last post by:
Dear forum friends, With the development of smart home technology, a variety of wireless communication protocols have appeared on the market, such as Zigbee, Z-Wave, Wi-Fi, Bluetooth, etc. Each...
0
agi2029
by: agi2029 | last post by:
Let's talk about the concept of autonomous AI software engineers and no-code agents. These AIs are designed to manage the entire lifecycle of a software development project—planning, coding, testing,...

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.