Arathalion Posted March 17, 2005 Share Posted March 17, 2005 Is there a way to make pixelsearch look for the second pixel of a certain colour in an area? I know that there's already one of this colour, but i'd like to check for a second. is there some way of doing this with PixelSearch, or would i have to do it manually with GetPixelColor, and miss out the one that i know is there? eg: +-----+ |x|x|x| |------- |x|y|x| |------- |x|x|x| +-----+ Pretend that's a square, and i know that dot "y" is black, and the rest are probably white. but, one (or more) of the "x"'s might be black - but i don't know if it is. how can i check for this? (it doesn't matter what coordinates it has) i need a return of 0 if all of the "y" pixels are white, and a return of 1 if any of them are black. 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