Am Mittwoch, 5. Februar 2003 09:09 schrieb James Henstridge: > 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. > > 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. Well, for my uses it's probably enough to create a temporary file which I load again.
Andreas _______________________________________________ pygtk mailing list [EMAIL PROTECTED] http://www.daa.com.au/mailman/listinfo/pygtk Read the PyGTK FAQ: http://www.async.com.br/faq/pygtk/
