Re: [fltk.general] Displaying an image already in memory

2007-05-30 Thread jseb
> Well, if you do write this, I would greatly appreciate if you could > publish the code. Personally, I believe that every image format Ok, i've just finished to write the code. It works with Windows, black screen with Linux. Probably not too difficult to find.. but anyway, i have to polish m

Re: [fltk.general] Displaying an image already in memory

2007-05-29 Thread MacArthur, Ian \(SELEX\) \(UK\)
> > I've put all the images of my application (a lot) in a big > resource file. > I load them directly, without using fltk (perhaps there's a > way to load > images from a resource file, but i don't believe it). > > Now, i've PNG files in memory. So, how can i display them > with FLTK ? I >

Re: [fltk.general] Displaying an image already in memory

2007-05-28 Thread matthiasm
On May 28, 2007, at 10:37 PM, Gerald Ayme wrote: > Thank you for answering. > So, to sum it up : i'm using FLTK 1.1.7 > Ok, i think i'll have to use the libpng (as it's shipped with fltk, i > won't have any dependancies problems) and decode myself the picture in > memory. Correct. That is pretty

Re: [fltk.general] Displaying an image already in memory

2007-05-28 Thread Greg Ercolano
Gerald Ayme wrote: > Then, i guess i could put the buffer into a Fl_RGB_Image buffer and > display it. Yes.. either Fl_RGB_Image, or for that matter any kind of pixel image buffer. Here's an example showing how to draw into a plain unsigned char pixel buffer, and

Re: [fltk.general] Displaying an image already in memory

2007-05-28 Thread Gerald Ayme
Thank you for answering. So, to sum it up : i'm using FLTK 1.1.7 Ok, i think i'll have to use the libpng (as it's shipped with fltk, i won't have any dependancies problems) and decode myself the picture in memory. Then, i guess i could put the buffer into a Fl_RGB_Image buffer and display it.

Re: [fltk.general] Displaying an image already in memory

2007-05-28 Thread jseb
Thank you for answering. So, to sum it up : i'm using FLTK 1.1.7 Ok, i think i'll have to use the libpng (as it's shipped with fltk, i won't have any dependancies problems) and decode myself the picture in memory. Then, i guess i could put the buffer into a Fl_RGB_Image buffer and display it. Tha

Re: [fltk.general] Displaying an image already in memory

2007-05-28 Thread matthiasm
On May 28, 2007, at 8:19 PM, Gerald Ayme wrote: > Now, i've PNG files in memory. So, how can i display them with > FLTK ? I > can't use the load functions of the library, as they load files > from disk, > and don't seem to work with buffers. There is no function at this point in FLTK1 to dec

Re: [fltk.general] Displaying an image already in memory

2007-05-28 Thread Sanel Zukan
> Hello, Hi, > I've put all the images of my application (a lot) in a big resource file. > I load them directly, without using fltk (perhaps there's a way to load > images from a resource file, but i don't believe it). No. > Now, i've PNG files in memory. So, how can i display them with FLTK ?

[fltk.general] Displaying an image already in memory

2007-05-28 Thread Gerald Ayme
Hello, I've put all the images of my application (a lot) in a big resource file. I load them directly, without using fltk (perhaps there's a way to load images from a resource file, but i don't believe it). Now, i've PNG files in memory. So, how can i display them with FLTK ? I can't use the lo