drawing on a pixbuf



Hi,

this question is half Gtkmm, half Cairomm… I need to draw rectangles on a pixbuf and I need it to be fast. I could do this accessing the pixels directly but it's not elegant. ;o)

I tried to wrap a Cairo surface on the pixbuf's pixels but the rowstride is apparently not computed in the same way.

Before I spend more time on this, is there a way to interface Cairo with Gdk::Pixbuf without copying all the pixel values twice ?

Thanks,
yann


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