|
From: John H. <jdh...@ac...> - 2004-03-09 20:59:49
|
>>>>> "Trevor" == Trevor Blackwell <tl...@an...> writes:
Trevor> In backend_gtk.py, it does some antialiased rendering by
Trevor> direct manipulation of pixel values which is only correct
Trevor> for 24-bit TrueColor X11 visuals. I'm running a 16-bit (5
Trevor> red, 6 green, 5 blue) visual, so this produces visual
Trevor> junk.
Trevor> I think the right way to do it is with a Pixbuf, which
Trevor> handles alpha rendering. The code is much simpler and
Trevor> faster too. Here is a patch:
Nice!! Where did you learn that trick? pb.pixel_array is not
documented at
http://www.gnome.org/~james/pygtk-docs/class-gdkpixbuf.html.
This is great to know because I can use the same approach to port
image handling to gtk once I get that up and running.
FYI, your patch was line wrapped but it was simple enough to apply "by
eye".
JDH
|