Thread Rating:
  • 0 Vote(s) - 0 Average
  • 1
  • 2
  • 3
  • 4
  • 5
Please Help Clarify SetRect
#1
Gint, you recently answered my questions about using SetRect, but I'm still having trouble filling in the right values. I understand that in here: SetRect &a A B C D, A = x coord and B = y coord. This is correct, right? Okay, now, you said that the third and fourth value set the pixels of the rectangle?

Say I wanted to limit the search region to be at (x)261 (y)97 which is the TOP LEFT part of the rectangle, and the BOTTOM RIGHT part of rectangle is (x)368 (y)148. Do you fill out the values like SetRect &a 261 97 368 148?
#2
SetRect &a 261 97 368 148 ;;368 148 are outside the rectangle, by the right-bottom corner
SetRect &a 261 97 368+1 148+1 ;;368 148 are inside the rectangle, in the right-bottom corner
#3
Thanks Gintaras, so much!


Forum Jump:


Users browsing this thread: 1 Guest(s)