Jump to content

Pixel Search


AccMaker
 Share

Recommended Posts

Okay I am new to Auto it so please try to help as much as possible.

What I am trying to do is get it to tell me how many black pixels there are on the file (0x000000)

And also tell me where they all are. Can someone please help me do this this is the only start I have going

In a image saved to my desktop

so I am trying to do this

; Find a pure red pixel in the range 0,0-20,300
$coord = PixelSearch( 0, 0, 20, 300, 0x000000 )
If Not @error Then
    MsgBox(0, "X and Y are:", $coord[0] & "," & $coord[1])
EndIf


; Find a pure red pixel or a red pixel within 10 shades variations of pure red
$coord = PixelSearch( 0, 0, 20, 300, 0xFF0000, 10 )
If Not @error Then
    MsgBox(0, "X and Y are:", $coord[0] & "," & $coord[1])
EndIf

But this is far from what I need

I need it to not do it for my screen but for a file givin by location on my computer and return a array of all those points

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...