Sign in to follow this  
Followers 0
joeyone

Find the right color from a wide spectrum

2 posts in this topic

#1 ·  Posted (edited)

I wonder how i can find out the right color from a pixel

i know i can use pixelgetcolor without any problem for one specifik color code

but if i have for example a red color witch is a little bit lighter or darker

how can i find out that it is red?

is this possible to find out that a color i basically red when you dealing with a wider spectrum of red shades?

thanks in advance

Edited by joeyone

Share this post


Link to post
Share on other sites



#2 ·  Posted (edited)

I wonder how i can find out the right color from a pixel

i know i can use pixelgetcolor without any problem for one specifik color code

but if i have for example a red color witch is a little bit lighter or darker

how can i find out that it is red?

is this possible to find out that a color i basically red when you dealing with a wider spectrum of red shades?

thanks in advance

The decimal value returned by PixelGetColor ( x , y [, hwnd] ) of similar colors is a similar number...

For example if a pure red return 4500000 a darker red may return 4600000... (its only an example, not the actual values)

Then you can determinate similar colors by ranges...

Edited by Chapi

Share this post


Link to post
Share on other sites

Create an account or sign in to comment

You need to be a member in order to leave a comment

Create an account

Sign up for a new account in our community. It's easy!


Register a new account

Sign in

Already have an account? Sign in here.


Sign In Now
Sign in to follow this  
Followers 0