Re: saving gtkdrawingarea

From: Date: Thu, 28 Mar 2002 01:38:48 +0000
Subject: Re: saving gtkdrawingarea
References: 1 2 3  Groups: php.gtk.general 
Request: Send a blank email to php-gtk-general+get-1669@lists.php.net to get a copy of this message
Is there a less geeky way to explain that pliz? :) I'd quite like to be able to do it too! ----- Original Message ----- From: "Alan Knowles" <alan@akbkhome.com> To: "Steph" <steph.fox@btinternet.com>; <php-gtk-general@lists.php.net> Sent: Thursday, March 28, 2002 12:23 AM Subject: Re: [PHP-GTK] saving gtkdrawingarea > you have to buffer the operations, then do it again using a libgd. > > > > eg. if the user draws a line on the drawing area, > $objects_on_drawingarea[] = new line(); > $objects_on_drawingarea[]->draw(); > > > // later on save > foreach ($objects_on_drawingarea as $k,$v) > $objects_on_drawingarea[$k]->save($gd); > > class line { > function draw() { > gdk::draw_line.......... > > function save($gd) { > gd_image_draw_line($gd,$this->x,$this->y...... > > > regards > alan > > Steph wrote: > > >not without gdkimage apparently :-( > > > >There's no way to get the pixel values from a gdkpixmap. > > > >----- Original Message ----- > >From: "Michael Waples" <michaelwaples@dingoblue.net.au> > >To: <php-gtk-general@lists.php.net> > >Sent: Thursday, March 28, 2002 7:37 AM > >Subject: [PHP-GTK] saving gtkdrawingarea > > > > > >>Now I don't think it is possible - but I'm drawing diagrams on a > >>GtkDrawingArea and would like to save the output to file somehow. I'd like > >>the php-gtk application to do the saving - any ideas ? > >> > >> > >> > >>-- > >>PHP-GTK General Mailing List (http://gtk.php.net/) > >>To unsubscribe, visit: http://www.php.net/unsub.php > >> > > > > > > >

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