Iscanniya Posted July 31, 2008 Share Posted July 31, 2008 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 If it's not possible then take this as a suggestion 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 Link to comment Share on other sites More sharing options...
TerarinKerowyn Posted July 31, 2008 Share Posted July 31, 2008 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 Link to comment Share on other sites More sharing options...
Iscanniya Posted August 2, 2008 Author Share Posted August 2, 2008 (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 August 2, 2008 by Iscanniya Link to comment Share on other sites More sharing options...
AdmiralAlkex Posted August 3, 2008 Share Posted August 3, 2008 You could always loop you PixelSearch() and take one row at a time from bottom to up. .Some of my scripts: ShiftER, Codec-Control, Resolution switcher for HTC ShiftSome of my UDFs: SDL UDF, SetDefaultDllDirectories, Converting GDI+ Bitmap/Image to SDL Surface 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