joeyone Posted October 15, 2008 Share Posted October 15, 2008 (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 October 15, 2008 by joeyone Link to comment Share on other sites More sharing options...
Chapi Posted October 15, 2008 Share Posted October 15, 2008 (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 October 15, 2008 by Chapi Link to comment Share on other sites More sharing options...
Recommended Posts
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 accountSign in
Already have an account? Sign in here.
Sign In Now