473,379 Members | 1,187 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,379 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 2033
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...
1
by: CloudSolutions | last post by:
Introduction: For many beginners and individual users, requiring a credit card and email registration may pose a barrier when starting to use cloud servers. However, some cloud server providers now...
0
isladogs
by: isladogs | last post by:
The next Access Europe User Group meeting will be on Wednesday 3 Apr 2024 starting at 18:00 UK time (6PM UTC+1) and finishing by 19:30 (7.30PM). In this session, we are pleased to welcome former...
0
by: ryjfgjl | last post by:
In our work, we often need to import Excel data into databases (such as MySQL, SQL Server, Oracle) for data analysis and processing. Usually, we use database tools like Navicat or the Excel import...
0
by: taylorcarr | last post by:
A Canon printer is a smart device known for being advanced, efficient, and reliable. It is designed for home, office, and hybrid workspace use and can also be used for a variety of purposes. However,...
0
by: aa123db | last post by:
Variable and constants Use var or let for variables and const fror constants. Var foo ='bar'; Let foo ='bar';const baz ='bar'; Functions function $name$ ($parameters$) { } ...
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
1
by: Sonnysonu | last post by:
This is the data of csv file 1 2 3 1 2 3 1 2 3 1 2 3 2 3 2 3 3 the lengths should be different i have to store the data by column-wise with in the specific length. suppose the i have to...
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...

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.