hi, you can try this:
pb = gdk.pixbuf_new_from_file("redhand.png") if pb.props.has_alpha: bpp = 4 else: bpp = 3 tex = clutter.Texture() tex.set_from_rgb_data( pb.get_pixels(), pb.props.has_alpha, pb.props.width, pb.props.height, pb.props.rowstride, bpp, 0) so long :wq buz On Tue, Oct 14, 2008 at 11:36:14AM +0300, Tero Saarni wrote: > Hi, > > How can I create Texture from pixbuf on clutter 0.8.2 + pyclutter > bindings from SVN? > > Following doesn't seem to work anymore: > > > import clutter > from gtk import gdk > > stage = clutter.Stage() > tex = clutter.Texture(gdk.pixbuf_new_from_file("redhand.png")) > stage.add(tex) > stage.show_all() > clutter.main() > > > Texture(filename="redhand.png") works but I have the image as pixbuf > originally. > > -- > Tero > -- > To unsubscribe send a mail to [EMAIL PROTECTED] > -- When facts don't fit the theory, change the facts. -- Albert Einstein GnuPG Fingerprint: 2FFF FC48 C7DF 1EA0 00A0 FD53 8C35 FD2E 6908 7B82
signature.asc
Description: Digital signature