Re: GdkPixbuf Trouble
| From: | Andrei Zmievski | Date: | Mon, 03 Apr 2006 05:49:12 +0000 |
| Subject: | Re: GdkPixbuf Trouble | ||
| References: | 1 2 3 4 5 6 | Groups: | php.gtk.dev |
| Request: | Send a blank email to php-gtk-dev+get-2694@lists.php.net to get a copy of this message | ||
You are not passing the right parameters in, then. If you look at the code;
if (rowstride == -1) {
rowstride = width * 3;
}
if (rgb_buf_len < rowstride * (height-1) + width * 3) {
php_error(E_WARNING, "RGB buffer is not large enough");
return;
}
Basically, your rowstride, width, and height parameters need to match up with the buffer length. And it also depends on whether you are using RGB or RGBA buffers.
-Andrei
On Mar 31, 2006, at 10:31 AM, Anant Narayanan wrote:
Christian,I tried, and this is what I get instead: Warning: RGB buffer is not large enough in /home/anant/php/php-gtk/test/bug_pixbuf-demo.php on line 78 I tried with both the rgb and rgb_32 methods. Regards, --Anant Find Freedom, Go Open Source! http://www.kix.in/I made overrides for draw_rgb_image() and draw_rgb_32_image(). The _dithalign versions are no more. Try it now.Does that mean that the gdkpixbuf animation example should work now?