Solved

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

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

What Should I Do With This Threat Intelligence?

Are you wondering if you actually need threat intelligence? The answer is yes. We explain the basics for creating useful threat intelligence.

Join & Write a Comment

Objective: - This article will help user in how to convert their numeric value become words. How to use 1. You can copy this code in your Unit as function 2. than you can perform your function by type this code The Code   (CODE) The Im…
In this tutorial I will show you how to use the Windows Speech API in Delphi. I will only cover basic functions such as text to speech and controlling the speed of the speech. SAPI Installation First you need to install the SAPI type library, th…
Access reports are powerful and flexible. Learn how to create a query and then a grouped report using the wizard. Modify the report design after the wizard is done to make it look better. There will be another video to explain how to put the final p…
Polish reports in Access so they look terrific. Take yourself to another level. Equations, Back Color, Alternate Back Color. Write easy VBA Code. Tighten space to use less pages. Launch report from a menu, considering criteria only when it is filled…

708 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

17 Experts available now in Live!

Get 1:1 Help Now