R: [PHP-GTK] [pimg] #0.0.12 (some errors related to a gdk-misc function)

From: Date: Thu, 20 Nov 2003 09:22:06 +0000
Subject: R: [PHP-GTK] [pimg] #0.0.12 (some errors related to a gdk-misc function)
References: 1  Groups: php.gtk.general 
Request: Send a blank email to php-gtk-general+get-4207@lists.php.net to get a copy of this message
-----BEGIN PGP SIGNED MESSAGE----- Hash: SHA1 > -----Messaggio originale----- > Da: Blue Prawn [mailto:blue_prawn@tuxfamily.org] > Inviato: mercoledi 19 novembre 2003 21.04 > A: php-gtk-general@lists.php.net > Oggetto: [PHP-GTK] [pimg] #0.0.12 > I have made a new version with the default version with pixmap > visualisation, > but it is possible to switch to the gdkpixbuf version. The quality of the > image with pixmap is very worse because limited to 256 colors, > and the main > problem is that it is very much slower! > > And I would have advices on how to make that the parameter window > just show > the parameters of the last filter clicked (and also right click on it). a question. if you use gdk::draw_rgb_image for visualizing RGB data from imagick_convert($hdl,'RGB'), and dumping them with imagick_image2blob, you can use 24bit color. in the absence of pixbuf under win32, there could be this alternative. but i don't know how use that function. the question is utilizing data from a conversion $hdl=imagick_readfile($file); $width=imagick_width($hdl); // or similar $height=imagick_height($hdl); // or similar $data=imagick_image2blob($hdl); utilizing a GtkDrawingArea with expose-event connected with a callback function: function callback_expose(GtkWidget $drawingarea, GdkEvent $expose) { global $data,$width,$height; $wnd=$drawingarea->window; $gc=$wnd->new_gc(); gdk::draw_rgb_image($wnd,$gc,0,0,$width,$height,GDK_RGB_DITHER_NONE,$data,$w idth*3); } in some cases this function makes an error like: string with zeros at place of string in gdk::draw_rgb_image where is the error ? Dimitri Giardina -----BEGIN PGP SIGNATURE----- Version: GnuPG v1.0.6 (MingW32) Comment: For info see http://www.gnupg.org iEYEARECAAYFAj+8h7wACgkQjbCncHBsBCIryQCggcpMkCqzn1KQNlonH/0D/tWd ydIAn044Jj4jFuuJoyEhDaSqY4Go3DZ5 =tNwF -----END PGP SIGNATURE-----

« previous php.gtk.general (#4207) next »