Re: JPEG -- how do I display one?
- From: Paul Davis <paul linuxaudiosystems com>
- To: Charles Packer <mailbox cpacker org>
- Cc: gtk-list gnome org
- Subject: Re: JPEG -- how do I display one?
- Date: Mon, 20 Nov 2006 08:50:03 -0500
On Mon, 2006-11-20 at 07:39 -0500, Charles Packer wrote:
> The GTK mailing list archive search engine is broken, so I
> don't know if this topic has been covered before:
> I would like to use ImageMagick functions to manipulate
> pixel images and then display them under GTK. Problem is,
> ImageMagick documentation has nothing about how to interface
> to any kind of GUI environment, and GTK documentation that I've
> been able to find so far has nothing about how to interface
> with standard image formats.
> If somebody could point me to example code on how to read in
> an image file -- JPEG or PNG24, say -- and display it, I could take it
> from there.
GtkWidget* image = gtk_image_new_from_file (path_to_image_file);
] [Thread Prev