Re: JPEG
- From: Dave Smith <davecindysmith comcast net>
- To: "Ariel Fritz" <duin tutopia com>
- Cc: <gtk-app-devel-list gnome org>
- Subject: Re: JPEG
- Date: Wed, 19 Nov 2003 18:14:29 -0500
On Wednesday 19 November 2003 13:34, Ariel Fritz wrote:
Have you got any code example?
Can I put a JPEG image on a gtk window? If yes, how. I´m using GTK 2.0
http://developer.gnome.org/doc/API/2.2/gtk/gtk-question-index.html
If your JPEG file is named "foo.jpg", first convert the image to an XPM file
by running the program:
convert foo.jpg foo.xpm
Then import it per the documentation. For example:
pixmap_foo=gdk_pixmap_create_from_xpm(main_window->window,
NULL,NULL,"foo.xpm");
See the documentation for "convert" for options on resizing, rotating, etc.
Dave
[
Date Prev][
Date Next] [
Thread Prev][
Thread Next]
[
Thread Index]
[
Date Index]
[
Author Index]