Re: Disk Image from GtkDrawingArea
- From: learfox furry ao net
- To: Victor STANESCU <vstanescu logicnet ro>
- Cc: gtk <gtk-app-devel-list gnome org>
- Subject: Re: Disk Image from GtkDrawingArea
- Date: Thu, 4 Jan 2001 14:24:41 -0800 (PST)
What would be the most efficient way to save a disk image from a
GtkDrawingArea?
The format is not so important - can be xpm, gif, jpg or whatever you
want, as long as it can be opened with a normal image viewer.
I haven't done this in ages... but what I recall is to first get the
GtkDrawingArea's window (GTK_WIDGET(da)->window) and then
get image of that window.
Once you have the image, parse it and I would just save it as .tga since
it's a simple format to understand. If you have libXpm it might help if
you use it to save the data on the image instead.
--
Sincerely, ,"-_ \|/
-Capt. Taura M. , O=__ --X--
..__ ,_JNMNNEO=_ /|\
OMNOUMmnne. {OMMNNNEEEEOO=_
UOOOBIOOOEOMMn. 'LONMMMMNNEEEOOO=.__..,,..
UUOOEUUOOOOOOOObe '"=OMMMMWNEEEOOOOO,"=OEEEOO=,._
OOUUUIEEIOONNOIUbe. "7OMMMMNNNNNWWEEEEOOOOOO" "'.
EEBNNMMMNWNWWEEIMMNe. __ 7EMMMNNNNNWWWEEEEEEEOO. " .
NNMMMMWWWMMMWEINMMMNn "=BBEEEEMMMMMMMMNNNWWWEEOOOOO=._ .
http://furry.ao.net/~learfox/
[
Date Prev][
Date Next] [
Thread Prev][
Thread Next]
[
Thread Index]
[
Date Index]
[
Author Index]