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
get pixel color from screen *HELP*
Code: Select all
Color getPixelScreen(int x, int y)
{
Color* vram = getVramDrawBuffer();
return vram[PSP_LINE_SIZE * y + x];
}
-
- Posts: 8
- Joined: Wed Apr 02, 2008 5:15 am