Wacken Posted January 30, 2007 Posted January 30, 2007 I call pixelsearch(100,100,200,200,color) The pixel to be found is located on 120,120. 1) Will it return? a: [20,20] b: [21,21] c: [120,120] I want to search 1 line of 50 pixels long: -Pixelsearch(100,100,100,150) -Or i use a loop and check 50 pixels individually for their collor. 2) Does this make a significant difference in exectution speed ?
Richard Robertson Posted January 30, 2007 Posted January 30, 2007 Any pixel operations will be slow without direct API access. I would assume it would return 120, 120.
Shevilie Posted January 31, 2007 Posted January 31, 2007 I call pixelsearch(100,100,200,200,color) If your in doubt try this pixelsearch(100,100,200,200,color) pixelsearch(99,99,201,201,color) If they return the same then [120,120] if not then you should be able to see what concept they are returning at Start here if you are new Valuater's AutoIT 1-2-3Looking for an UDF - Look hereDo you need to do it twice - Autoit
Wacken Posted February 1, 2007 Author Posted February 1, 2007 Thanx, I was afraid the pixelsearch and pixelchecksum would be slow, but i had winactivate quite a few times in my functions. This function takes 250 ms :S
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