Re: Display jpeg image only use GTK instead of using imlib and gdk-pixbuf?



david wrote:
> I have done that using GTK to display RGB images, but have not 
> idea on how show jpeg images using GTK. Does anyone know that 
> is pure GTK is able to do that?

This is pretty easy ... get the ijg jpeg sources:

	http://www.ijg.org/

there's a set of notes in there called "libjpeg.doc", which explain how
to use the jpeg library to read a JPEG file into an RGB buffer in
memory. 

HTH, John
--
John Cupitt, john cupitt ng-london org uk, +44 (0)20 7747 2570
VASARI Lab, The National Gallery, Trafalgar Square, London, WC2N 5DN




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