Jump to content

Find the right color from a wide spectrum


joeyone
 Share

Recommended Posts

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
Link to comment
Share on other sites

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
Link to comment
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
 Share

  • Recently Browsing   0 members

    • No registered users viewing this page.
×
×
  • Create New...