[Webinar] Streamline your web hosting managementRegister Today

x
?
Solved

Detecting color depth

Posted on 1999-11-17
3
Medium Priority
?
145 Views
Last Modified: 2010-04-04
How can I know that whither screen setting is 16 color, 256, 16 bit, or 24 bit color ?

Motaz
0
Comment
Question by:Motaz
  • 2
3 Comments
 
LVL 17

Accepted Solution

by:
inthe earned 120 total points
ID: 2213955
hi try this:

var
dev:integer;
begin
dev:=GetDeviceCaps(Form1.Canvas.Handle, BITSPIXEL);
showmessage(inttostr(dev));
end;


Regards Barry
0
 
LVL 7

Author Comment

by:Motaz
ID: 2214005
Thanks
0
 
LVL 7

Author Comment

by:Motaz
ID: 2214037
Thanks
0

Featured Post

Free Tool: Port Scanner

Check which ports are open to the outside world. Helps make sure that your firewall rules are working as intended.

One of a set of tools we are providing to everyone as a way of saying thank you for being a part of the community.

Question has a verified solution.

If you are experiencing a similar issue, please ask a related question

The uses clause is one of those things that just tends to grow and grow. Most of the time this is in the main form, as it's from this form that all others are called. If you have a big application (including many forms), the uses clause in the in…
This article explains how to create forms/units independent of other forms/units object names in a delphi project. Have you ever created a form for user input in a Delphi project and then had the need to have that same form in a other Delphi proj…
Stellar Phoenix SQL Database Repair software easily fixes the suspect mode issue of SQL Server database. It is a simple process to bring the database from suspect mode to normal mode. Check out the video and fix the SQL database suspect mode problem.
Get the source code for a fully functional Access application shell with several popular security features that Access VBA application developers desire, but find difficult or impossible to figure out how to code. You get the source code for managi…
Suggested Courses

591 members asked questions and received personalized solutions in the past 7 days.

Join the community of 500,000 technology professionals and ask your questions.

Join & Ask a Question