Re[2]: [PHP-GTK] Images

From: Date: Sat, 14 Apr 2001 11:03:25 +0000
Subject: Re[2]: [PHP-GTK] Images
References: 1 2  Groups: php.gtk 
Request: Send a blank email to php-gtk+get-1385@lists.php.net to get a copy of this message
how could I convert images to xpm? I tried Gimp, but there's just xbm little problem: I'm under Windows for some time now well, I converted some image to xbm and tried this example I foung in list archive 18: $window = &new GtkWindow(); 19: list($pixmap, $mask) = Gdk::pixmap_create_from_xpm($window->window,null, "some.xbm"); 20: $pixmapwid = &new GtkPixmap($pixmap, $mask); 21: $window->add($pixmapwid); 22: $window->show_all(); and the result -> Warning: pixmap_create_from_xpm() expects argument 1 to be gdkwindow, NULL given in pixmap.php on line 19 Warning: gtkpixmap() expects argument 1 to be gdkwindow, NULL given in pixmap.php on line 20 Warning: add() expects argument 1 to be gtkwidget, NULL given in pixmap.php on line 21 please, could anyone help me -- Adam Rambousek email: rambousek@volny.cz PGP KeyID: 33BD6BAE ICQ: 47596279 www: http://adamovy.cestiny.cz http://werich.poda.cz http://rambousek.com

« previous php.gtk (#1385) next »