Get and set pixel values

I have loaded a pixmap image into a drawable area and now I want to rewrite it with some of the pixels moved from (xa.ya) to (xb, yb), but how can I get the pixel value at point (x,y) and how do I set the pixel value at the new (x1,y1)?
I need something like this:
and it would be nice if it's quite fast, gdk_draw_point() will probably be to slow.
Are there anyone who might have a solution for me?
/Björne Lindberg

[Date Prev][Date Next]   [Thread Prev][Thread Next]   [Thread Index] [Date Index] [Author Index]