Re: [gtk-list] Displaying JPEGs
- From: raster redhat com
- To: gtk-list redhat com
- cc: mlindahl phoenix Princeton EDU
- Subject: Re: [gtk-list] Displaying JPEGs
- Date: Sat, 13 Feb 1999 12:18:29 -0500 (EST)
On 13 Feb, Mike Lindahl scribbled:
-> I am relatively new to GTK and am trying to get jpegs to display. I am
-> using the libjpeg library and that is not a problem. I have successfully
-> loaded the image into an array of memory.
->
-> My problem comes in trying to display it. My first idea was to use
-> successive calls to gdk_draw_point. This works, however, it takes _way_
-> too long. Since I am running on an 8-bit display, I also have to allocate
-> color entries (I am not entirely sure if I am doing this correctly,
-> but...).
->
-> What would be the correct way to get large images to display?
-> Should I be using pixmaps or some other object?
->
-> I have read through some of the archives to the list, but have been unable
-> to find anything that solves my problem. Does anyone know of any sample
-> code for loading an array of image data into a pixmap? I also tried to
-> use things like gdk_pixmap_create_from_data (), but I don't know what
-> XImage format is, so that obviously didn't work.
there is a whole library designed just to do all of this:
http://www.labs.redhat.com/imlib/
save yourself a lot of work :)
--
--------------- Codito, ergo sum - "I code, therefore I am" --------------------
raster@rasterman.com /\___ /\ ___/||\___ ____/|/\___ raster@redhat.com
Carsten Haitzler | _ //__\\ __||_ __\\ ___|| _ / Red Hat Advanced
218/21 Conner Drive || // __ \\_ \ | | \ _/_|| / Development Labs
Chapel Hill NC 27514 USA ||\\\/ \//__/ |_| /___/||\\ 919 547 0012 ext 282
+1 (919) 929 9443, 801 4392 For pure Enlightenment http://www.rasterman.com/
\|/ ____ \|/ For those of you unaware. This face here is in fact
"@'/ ,. \@" a Linux Kernel Error Message.
/_| \__/ |_\
\__U_/
[
Date Prev][
Date Next] [
Thread Prev][
Thread Next]
[
Thread Index]
[
Date Index]
[
Author Index]