Solved

What is a graphic mode.

Posted on 1998-03-31
1
137 Views
Last Modified: 2010-04-06
Haw can I get a screen resolution and colors in Delphi program.
0
Comment
Question by:EG033198
1 Comment
 
LVL 4

Accepted Solution

by:
d003303 earned 100 total points
ID: 1361132
Hi EG,

use the Screen instance of TScreen for resolution, DPI etc.
For color depth, call
NumBitsPerPixel := GetDeviceCaps(Canvas.Handle, BITSPIXEL);

Slash/d003303
0

Featured Post

Announcing the Most Valuable Experts of 2016

MVEs are more concerned with the satisfaction of those they help than with the considerable points they can earn. They are the types of people you feel privileged to call colleagues. Join us in honoring this amazing group of Experts.

Question has a verified solution.

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

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…
Have you ever had your Delphi form/application just hanging while waiting for data to load? This is the article to read if you want to learn some things about adding threads for data loading in the background. First, I'll setup a general applica…
Finds all prime numbers in a range requested and places them in a public primes() array. I've demostrated a template size of 30 (2 * 3 * 5) but larger templates can be built such 210  (2 * 3 * 5 * 7) or 2310  (2 * 3 * 5 * 7 * 11). The larger templa…

821 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