Jump to content

Recommended Posts

Posted

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

Posted

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...
Posted (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 by evilertoaster

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
  • Recently Browsing   0 members

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