Andreas Kostyrka wrote:
Hi!Not that I know of. Note that the CVS version of pygtk might help. If you have numpy, you can now get a reference to a numpy multidimensional array representing the pixel data in the pixbuf (MxNx3 or MxNx4 depending on the presence of an alpha channel). You can use this to edit the pixels of an existing pixbuf.
Is there any "easy" and fast way to convert from PIL image objects to a pixbuf?
I have also added wrappers for the draw_rgb_image, draw_rgb_32_image and draw_gray_image methods of the GdkDrawable class (which is the abstract base for windows and pixmaps), so if you can convert your PIL image to a pixel data string or buffer object, you could use them to display the image.
I still plan to implement something like the pygtk-0.6.x draw_array() method for drawing a numpy array to a drawable, and a way to create a pixbuf from a numpy array.
James.
--
Email: [EMAIL PROTECTED]
WWW: http://www.daa.com.au/~james/
_______________________________________________
pygtk mailing list [EMAIL PROTECTED]
http://www.daa.com.au/mailman/listinfo/pygtk
Read the PyGTK FAQ: http://www.async.com.br/faq/pygtk/
