yhack Posted June 15, 2006 Share Posted June 15, 2006 Hi, How do I use pixel search to look for a colour which isn't white? The background is white so i need to get every colour which isn't white, and then drag that to somewhere. Thanks Link to comment Share on other sites More sharing options...
MrSmiley Posted June 15, 2006 Share Posted June 15, 2006 Hi, How do I use pixel search to look for a colour which isn't white?You might try searching for everything that's black, but give it a really big shade variation... Link to comment Share on other sites More sharing options...
evilertoaster Posted June 15, 2006 Share Posted June 15, 2006 (edited) You'd probably want to use PixelGetColor. Set it in a doubble while loop to set your "search box". Somthing like this (not actual code just the idea) For $X=0 to $xMax For $Y=0 to $yMax $color=PixelGetColor($x,$y) if $color<>'white' then signify somthing (maybe set an array to keep track) endif Next Next Edited June 15, 2006 by evilertoaster Link to comment Share on other sites More sharing options...
Nomad Posted June 15, 2006 Share Posted June 15, 2006 PixelSearch( left, top, right, bottom, color) If @error Then ; color not found, do w/e EndIf Nomad Edit: my bad, I see it's not going to be that simple to do what you want. I just woke up. 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