Mysis Posted December 31, 2012 Share Posted December 31, 2012 I need to have pixelsearch search an area of pixels that stretches across the screen and is one pixel tall. Would I use (I am trying to search the line of pixels at 144): pixelsearch(0 ,1050, 144, 144, 0x000000) pixelsearch(0 ,1050, 144, 145, 0x000000) pixelsearch(0 ,1050, 143, 145, 0x000000) thanks, Mysis Link to comment Share on other sites More sharing options...
MilesAhead Posted December 31, 2012 Share Posted December 31, 2012 (edited) Looks to me like the function expects a rectangle, not a line. But you could find out for youself if it would loop through the line by setting up a test case that contains the searched for color on the line. If not then set up a loop using PixelGetColor() instead. edit: alternatively, search a rectangle 2 pixels high so that the line you are interested in is searched first. If the found color is on the other line, then color not found. Seems obvious if you just took the time to write a test stub. Edited January 1, 2013 by MilesAhead My Freeware Page 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