On Tue, 2008-10-14 at 11:36 +0300, Tero Saarni wrote:

> How can I create Texture from pixbuf on clutter 0.8.2 + pyclutter
> bindings from SVN?

the ChangeLog has all the details, but in short:

  tex = clutter.Texture(filename="redhand.png")

if you need to just load files, ClutterTexture already does that without
exposing the GdkPixbuf API.

> Texture(filename="redhand.png") works but I have the image as pixbuf
> originally.

don't. if you really need, use the set_from_rgb_data() method with the
various values from GdkPixbuf: there's a direct mapping from what's
required from ClutterTexture (width, height, rowstride, alpha channel
and pixel data) to what GdkPixbuf provides.

ciao,
 Emmanuele.

-- 
Emmanuele Bassi, Intel Open Source Technology Center
-- 
Emmanuele Bassi, Intel Open Source Technology Center

-- 
To unsubscribe send a mail to [EMAIL PROTECTED]

Reply via email to