List Info

Thread: How to know how many colors a user can display on his screen?




How to know how many colors a user can display on his screen?
user name
2007-01-05 15:56:25

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";
falon5000%40yahoo.com">falon5000yahoo.com


----- Original Message ----
From: Chris Lab < christianlabrie%40videotron.ca">christianlabrievideotron.ca>
To: delphi-en%40yahoogroups.com">delphi-enyahoogroups.com
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]

__._,_.___
.

__,_._,___
[1]

about | contact  Other archives ( Real Estate discussion Medical topics )