Re: Anyone want to try gdkpixbuf ? call for guinea pigs....
| From: | Andrei Zmievski | Date: | Thu, 29 Nov 2001 14:12:10 +0000 |
| Subject: | Re: Anyone want to try gdkpixbuf ? call for guinea pigs.... | ||
| References: | 1 2 3 | Groups: | php.gtk.dev |
| Request: | Send a blank email to php-gtk-dev+get-212@lists.php.net to get a copy of this message | ||
On Wed, 28 Nov 2001, Alan Knowles wrote:
>
> Attached (hopefully) is the code for gdkpixbuf - I havent been able to
> test it yet - it builds...
>
> Does anyone have any time to try it.... (segfaults guarenteed :)
>
> there are 3 functions that work.
>
> $pixbuf = new gdkpixbuf("my_image.jpg");
> $pixbuf->scale_simple(100,100,GDK_INTERP_NEAREST); // x,y, gdkinterptype
> list($pixmap,$bitmask) = $pixbuf->render_pixmap_and_mask(0); // alpha
> threshold;
Alan, you are too impatient. :) I was working on GdkPixbuf support
yesterday, but it required changing generator in several places since
GdkPixbuf is not in GtkObject hierarchy. I'm almost done.
-Andrei
* I am a legend in my spare time. *