Re: xpm resources
- Posted by jimcbrown (admin) May 06, 2015
- 2593 views
But if you insist, then just open the JPG file in binary mode and load it into sequence(s), using jpg_image &= sprintf("%d,", getc(fn)).
How do I display that jpg image?
Search for "jpg"/"gif" in http://www.rapideuphoria.com/archive.htm.
And? What do i find, some libs for using GDI on windows...
Long time ago I used the gif library, and it worked perfectly! I think maybe it was: http://www.rapideuphoria.com/pcxgif.zip
Oh, nice a GIF loader for MS-DOS...
---------------------- Information from the mail header ----------------------- --Sender: Euphoria Programming for MS-DOS <EUPHORIA@MIAMIU.ACS.MUOHIO.EDU> --Poster: Michael Bolin <michaeltom@GEOCITIES.COM> --Subject: GIF loader bug fix --Sent: Sunday, September 28, 1997 2:21 PM -------------------------------------------------------------------------------
This is another library for jpg (I've never used it): http://www.rapideuphoria.com/jpgdecom.zip
Oh, really great... Converts .jpg to .bmp and than you can load it on Windows (great idea...)
Could be done with Irfanview for nearly every Pictureformat.
i_view32 c:\test.bmp /c=c:\giftest.gif
The rest is very simple, you store the sequence in include file and modify the code in the library to input from a string instead of file (look who's teaching who...).
But it works just fine with any type of file.
Yes, The rest is very simple...
Have nice day.
Andreas
GTK supports loading jpgs rather straightforwardly it seems, and for a very long time as well ... https://mail.gnome.org/archives/gtk-app-devel-list/2003-March/msg00113.html