Well, this is an interesting problem.
I suggest you
1) Explore the possibility of using GetDeviceCaps with
SIZEPALETTE
COLORRES
NUMCOLORS
You *should* be able to put together an understanding of the users system
with GetDeviceCaps - at least, I think, you can determine if the user's
workstation can support 24 bit pictures.
2) explore setting the pixel format (assuming you're using bitmaps), based on
the outcome of the above test -
Good Luck!
Joe Wilcox
"Reading Cliff Notes to know a novel is like eating Count Chocula to know steak"
"Nine women cannot have a baby in one month"
[EMAIL PROTECTED]
----- Original Message ----
From: Chris Lab <[EMAIL PROTECTED]>
To: [email protected]
Sent: Thursday, January 4, 2007 3:31:37 PM
Subject: [delphi-en] How to know how many colors a user can display on his
screen?
Hello to all of you,
I have this problem, we have many TImages (clear nice 24 bits pictures)
components on a Form, but some of our clients have erros when they open the
FORM cause they dont have a graphic card powerful enough to display all the
colors.
Can anybody help me
1. at the FORMCREATE event, get the user max number of colors of his system
2. Can you suggest a way to adapt the TImage so the colors would be reduced to
that max number of colors and it would work for everyone.
Thanks a lot.
Christian
[Non-text portions of this message have been removed]
[Non-text portions of this message have been removed]