Reading Color of a pixel at a location on the screen

2 posts / 0 new
Last post
csp
csp's picture
Offline
Joined: 6 Apr 2010
Posts:
Reading Color of a pixel at a location on the screen

Hi,

If I want to paint a pixel on the Screen using a certain color, I'm currently using the API maSetColor(color); and maPlot(x, y);
However, it seems that there is no API to read the RGB-Value of a pixel at a certain point on screen.
Could you implement an API like, let's say, maGetColor(x, y)? This would really be useful, i.e. if you do XOR-Drawing for instance.
I also think that this wouldn't be too hard to implement.
I know I could work around this by using the frameBuffer-APIs, but it would be more conventient if such an API existed.

Comment viewing options

Select your preferred way to display the comments and click "Save settings" to activate your changes.
ezyclie
ezyclie's picture
Offline
Mobile Wizard
Joined: 4 Mar 2010
Posts:

Plz read this: http://www.mosync.com/forum/viewtopic.php?f=12&t=661