Harvey Chapman schrieb:
> On Feb 9, 2010, at 11:53 AM, MacArthur, Ian (SELEX GALILEO, UK) wrote:
> 
>> What you need is some sort of "resource compiler" to borrow a MS term - 
>> basically to convert the png files into binary blobs you can link into your 
>> code.
>> We wrote our own but I'm sure there must be better ways to do it. Basically 
>> it stored the data as arrays in memory and returned a char* we could 
>> reference extern to point at the data.
> 
> The grubinst program contains a bin2h.c program which takes an input file and 
> outputs a .h file containing a char* array.
> Find it here: http://sourceforge.net/projects/grub4dos/files/
> 
> I'm sure there are others, but that one comes to mind quickly.

OK, compiled this code (bin2h.c) and it converts jpg/png to char 
array....fine! I also can include it to my code... But, I have NO idea 
how to proceed now. I just don't know enough about the subject matter...

So, do I really have to modify libpng/libjpg like mentioned later in 
this thread? Or is it possible to modify Fl_PNG_Image, for example, to 
forward the pointer of the array where the image is stored to fltk?
--> Any examples/docs to this?

If I have to modify the libpng where do I find further info to this? I'm 
really a bit overchallenged, but I want to do it, because it would be a 
nice solution!
--> Any examples/docs to this?

Thanks to you guys!

FLTK-Version: 1.1.9
OS: Linux
_______________________________________________
fltk mailing list
[email protected]
http://lists.easysw.com/mailman/listinfo/fltk

Reply via email to