[gtk-server] How to access to the pixbuf data

  • From: "Guillaume Legris" <glegris@xxxxxxxxxxxx>
  • To: gtk-server@xxxxxxxxxxxxx
  • Date: Sat, 28 Apr 2007 19:24:18 +0200


I'm writing a (TCP-based) Java client for GTK-server and I need to
draw an array of pixels created from the Java side.

I tried gdk_draw_point (as shown in
http://www.gtk-server.org/fractal.ksh) but it's too slow when there
are too many pixels to write.

I would like using gdk_pixbuf_new_from_data()  and/or accessing to the
pixbuf pixels with gdk_pixbuf_get_pixels (pixbuf)  instead.

How could I pass an array to the gdk_pixbuf_new_from_data() method ?
Is there a way to access to the pixels ?

Thanks in advance.

Guillaume Legris

Other related posts: