Solved

How do I get my program to change glyphs from 16bit to 16M?

Posted on 2001-08-22
3
160 Views
Last Modified: 2010-04-06
How do I get my program to change toolbar glyphs from 16bit to 16 Million colors? I have two imagelists on my form, When I load my program I would it to detect the current palette if its 256 or 16 million colors and load the load the imagelist. Examples please.
0
Comment
Question by:TCSCode
3 Comments
 
LVL 2

Expert Comment

by:danysz
ID: 6416209
u shall use only the 16 bit colors icons...  16 M make ome problems and it's also very heavy....

daniel
0
 
LVL 1

Accepted Solution

by:
sundayboys earned 100 total points
ID: 6416264
Uses
  Windows;
 
function GetCurrentColorDepth:Integer;
begin
  Result:=GetDevicecaps(GetDc(GetDesktopWindow),BITSPIXEL);
end;

Note
 
This function return display color depth in Bits Per Pixel (BPP).
4 BPP = 16 Colors.
8 BPP = 256 Colors.
16 BPP = High Colors.
32 BPP = True Colors
0
 

Author Comment

by:TCSCode
ID: 6418332
Excellent, Thank's sundayboys.
0

Featured Post

Is Your Active Directory as Secure as You Think?

More than 75% of all records are compromised because of the loss or theft of a privileged credential. Experts have been exploring Active Directory infrastructure to identify key threats and establish best practices for keeping data safe. Attend this month’s webinar to learn more.

Question has a verified solution.

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

Suggested Solutions

Creating an auto free TStringList The TStringList is a basic and frequently used object in Delphi. On many occasions, you may want to create a temporary list, process some items in the list and be done with the list. In such cases, you have to…
Introduction I have seen many questions in this Delphi topic area where queries in threads are needed or suggested. I know bumped into a similar need. This article will address some of the concepts when dealing with a multithreaded delphi database…
This tutorial gives a high-level tour of the interface of Marketo (a marketing automation tool to help businesses track and engage prospective customers and drive them to purchase). You will see the main areas including Marketing Activities, Design …
Edureka is one of the fastest growing and most effective online learning sites.  We are here to help you succeed.

912 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

Need Help in Real-Time?

Connect with top rated Experts

22 Experts available now in Live!

Get 1:1 Help Now