Re: [gtk-list] Window Pixel Values
- From: lightmanaj earthlink net
- To: rhfreeman micron com, gtk-list redhat com
- Subject: Re: [gtk-list] Window Pixel Values
- Date: Thu, 9 Sep 1999 22:04:20 -0700
Hi Richard,
I believe there is a function called gdk_image_get which will allow
you to take a GdkDrawable (such as the "window" field of a
GtkWidget) and convert it to a Gdk image. As far as saving this
image to a disk file...well...that's where my work comes in.
I'm working on a library which integrates the ImageMagick toolkit,
which can save up to about 70 (!) file formats, with GTK+. I am
calling this project "GdkMagick". Right now, it's far from complete
and can only convert Gdk drawables to ImageMagick images.
Looks like it might work for you, if you want to take the screen
capture of a GTK/GDK window and save it to a file using
ImageMagick.
The GdkMagick Web site is at the following address:
http://home.earthlink.net/~lightmanaj/GdkMagick
If you need more assistance, let me know (preferrably in private e-
mail).
Thanks,
--Arthur
Date forwarded: 9 Sep 1999 09:30:15 -0000
From: rhfreeman <rhfreeman@micron.com>
To: "'gtk-list@redhat.com'" <gtk-list@redhat.com>
Date sent: Thu, 9 Sep 1999 03:30:05 -0600
Forwarded by: gtk-list@redhat.com
Send reply to: gtk-list@redhat.com
Subject: [gtk-list] Window Pixel Values
> Hi all,
>
> I have a window with some buttons, clist and a pixmap and I would like to
> save this to a file. I was thinking of using the GD library to output a PNG
> of the image. Using GD I can set the image pixel by pixel.
>
> So what I need to be able to do in GTK is get the pixel values of the
> windows including widgets there-in. I've gdk_image_get_pixel() but that only
> seems to work for images. Anyone got any ideas?
>
> Thanks,
>
> Richard
>
> --
> To unsubscribe: mail -s unsubscribe gtk-list-request@redhat.com < /dev/null
>
>
[
Date Prev][
Date Next] [
Thread Prev][
Thread Next]
[
Thread Index]
[
Date Index]
[
Author Index]