Sign in to follow this  
Followers 0
Iscanniya

Getting PixelSearch to search bottom up

4 posts in this topic

Hi there,

Pixelsearch is searching from left to right and from top to bottom. Is there a way or is there anything planned to manipulate the search algorithm?

I tried PixelSearch(500, 500, -500, -500) but unfortunately it didn't find anything :P

If it's not possible then take this as a suggestion :P

If it isn't possible, then it would be good, to get an array with ALL mathing pixels in the defined rectangle and not only the first two coordinates.

Regards,

Markus

Share this post


Link to post
Share on other sites



Well you can't tell it to search a pattern if you mean it that way. You could setup a Array with the letters in it and then tell it left to right or right to left top to bottom or bottom to top or whatever you want the middle outwards / outwards to inward there are so many options to use


Contact via MSN: [email=terarink_msn@hotmail.com]terarink_msn@hotmail.com[/email], yahoo: terarink_yah

Share this post


Link to post
Share on other sites

#3 ·  Posted (edited)

Hi and thx for the reply.

Let me tell you what I am going to do:

I have a window and its 800 pixels * 600 pixels. In the middle i've got a point. There are many more points in the same color above my point. I want to get the nearest point above mine.

0,0---------------------------------------800,0

-----------------Point A-----------------------

-----------------Point B-----------------------

-----------------Point C-----------------------

-----------------myPoint-----------------------

0,600-----------------------------------800,600

Point C is the most nearest to my Point, and all Points do have the same color, so i wanted to pixelsearch bottom to top, from my point the first matching pixel of a specific color to the top.

Is this still possible with that array thing you told last post?

If so, please explain me what you mean.

Thanx and regards,

Markus

Edited by Iscanniya

Share this post


Link to post
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
Sign in to follow this  
Followers 0