Re: Drawing jpg files



On Wed, Jun 15, 2005 at 12:00:41AM -0700, Shiraz Baig wrote:
> I wish to show a jpg file in the user interface.
> What widget do I use and what function call do I use.
> I tried an image widget But it does not show jpg
> files.

gtk_image_new_from_file("file.jpeg");

It can load JPEGs -- unless you disabled it Gtk+-compile-time
with
./configure --without-libjpeg
(or managed to break the pixbuf loader after installation).

Yeti


--
A: Because it messes up the order in which people normally read text.
Q: Why is top-posting such a bad thing?
A: Top-posting.
Q: What is the most annoying thing on usenet and in e-mail?



[Date Prev][Date Next]   [Thread Prev][Thread Next]   [Thread Index] [Date Index] [Author Index]