Solved

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

Posted on 2001-08-22
3
163 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

Free Tool: ZipGrep

ZipGrep is a utility that can list and search zip (.war, .ear, .jar, etc) archives for text patterns, without the need to extract the archive's contents.

One of a set of tools we're offering as a way to say 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

Suggested Solutions

A lot of questions regard threads in Delphi.   One of the more specific questions is how to show progress of the thread.   Updating a progressbar from inside a thread is a mistake. A solution to this would be to send a synchronized message to the…
Introduction Raise your hands if you were as upset with FireMonkey as I was when I discovered that there was no TListview.  I use TListView in almost all of my applications I've written, and I was not going to compromise by resorting to TStringGrid…
This video shows how to quickly and easily add an email signature for all users on Exchange 2016. The resulting signature is applied on a server level by Exchange Online. The email signature template has been downloaded from: www.mail-signatures…

856 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