| View previous topic :: View next topic |
| Author |
Message |
SpaceMonkey
Joined: 02 Apr 2008 Posts: 8
|
Posted: Thu Apr 03, 2008 6:34 am Post subject: get pixel color from screen *HELP* |
|
|
My problem should be simple to solve, I just cant find the answer anywhere (yes, I tried the search thing..)
I would like to get the pixel color from de screen.
the perfect-world-version:
color = getPixelColor( x, y);
Can anyone help me with this?
Thanks |
|
| Back to top |
|
 |
romero126
Joined: 24 Dec 2005 Posts: 200
|
Posted: Fri Apr 04, 2008 3:56 pm Post subject: |
|
|
| Code: | Color getPixelScreen(int x, int y)
{
Color* vram = getVramDrawBuffer();
return vram[PSP_LINE_SIZE * y + x];
} |
|
|
| Back to top |
|
 |
Vincent_M
Joined: 03 Apr 2007 Posts: 73
|
Posted: Sat Apr 05, 2008 8:17 am Post subject: |
|
|
| check your previous post. I aswersd it a while ago... |
|
| Back to top |
|
 |
SpaceMonkey
Joined: 02 Apr 2008 Posts: 8
|
Posted: Sat Apr 05, 2008 5:29 pm Post subject: |
|
|
Thanks allot!
Sorry for second post, I wanted to explain where I needed it for (maybe it would make a difference in code) |
|
| Back to top |
|
 |
|