drawing on a pixbuf
- From: Yann Leydier <yann leydier info>
- To: gtkmm-list gnome org
- Subject: drawing on a pixbuf
- Date: Thu, 24 Mar 2011 11:44:35 +0100
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]