sebastiannielsen2 has asked for the wisdom of the Perl Monks concerning the following question:
I would want to get some pixel color of the X screen the perl application is currently running on.
Im using perl-TK to generate the user interface, so maybe theres something useable there. The pixel I want to "read" is outside the user interface.
But is it possible to get the pixel color of a specific pixel, and hopefully without taking a screenshot and then using GD/ImageMagick because that would be pretty memory/CPU hungry.
Something like:
($r,$g,$b) = [somemodule]->pixel($x,$y);
|
|---|
| Replies are listed 'Best First'. | |
|---|---|
|
Re: Getting pixel color of screen
by zentara (Cardinal) on Dec 14, 2011 at 11:03 UTC | |
|
Re: Getting pixel color of screen
by Anonymous Monk on Dec 14, 2011 at 04:08 UTC | |
|
Re: Getting pixel color of screen
by Khen1950fx (Canon) on Dec 15, 2011 at 06:50 UTC |