Link to home
Start Free TrialLog in
Avatar of dhamet
dhamet

asked on

How many color in a bitmap?

I just want to know how many color are
in a picturebox and what are the RGB values ?

Thanks a lot.
Avatar of prem_kumar_25
prem_kumar_25

256

The answer is wrong. It depends on your display setup.
Avatar of dhamet

ASKER

OK, first of all, I'm french so...
Be gentle with my english...
Let's try to be clear :
For exemple I have a bitmap with only 11
colors used in, I would like to know the
RGB values for these 11 colors.
I'm quite sure the only way - to be fast - is to read
(something, somewhere?) in the bitmap
header.

My purpose is to play with Hue, Saturity and Luminosity (HSL) with each color of the bitmap.
For exemple, creating an ActiveX button
which have the capicity to be highlited when you move on (by playing with brightness).
If you have an answer and if you are interested, I can send you a very good beginning of this (little) ActiveX project.
   
 
Hm.. that requires API calls, I think.

Maybe someone like waty might know the answer. Otherwise (dare I say) it might by an idea to check the VB API section in news.devx.com
ASKER CERTIFIED SOLUTION
Avatar of raymer
raymer

Link to home
membership
This solution is only available to members.
To access this solution, you must be a member of Experts Exchange.
Start Free Trial
Nice bit of code!
Thanks!