aravind13
June 24th, 2008, 07:28 AM
Hi,
I am new to X-window programming & this forum.
My problem is to find the coordinates of a colored rectangle on screen.
There is an application which outputs a filled rectangle in a particular colour on the screen (Linux platform).
Can anyone please suggest an efficient way to get the on-screen coordinates of this rectangle using Xlib/SDL?
Scanning the screen pixel-wise (segmentation) will be a time consuming process.
Is there any way/algorithm/pseudocode for doing this efficiently?
Thanks in advance.
I am new to X-window programming & this forum.
My problem is to find the coordinates of a colored rectangle on screen.
There is an application which outputs a filled rectangle in a particular colour on the screen (Linux platform).
Can anyone please suggest an efficient way to get the on-screen coordinates of this rectangle using Xlib/SDL?
Scanning the screen pixel-wise (segmentation) will be a time consuming process.
Is there any way/algorithm/pseudocode for doing this efficiently?
Thanks in advance.