nanogui: loading images from memory


Previous by date: 2 Jan 2002 18:13:45 -0000 Re: loading images from memory, Peter Kerr
Next by date: 2 Jan 2002 18:13:45 -0000 GdLoadImageFromFile, Iris Huang
Previous in thread: 2 Jan 2002 18:13:45 -0000 Re: loading images from memory, Peter Kerr
Next in thread: 2 Jan 2002 18:13:45 -0000 Re: loading images from memory, Julian Smart

Subject: Re: [nanogui] loading images from memory
From: Jordan Crouse ####@####.####
Date: 2 Jan 2002 18:13:45 -0000
Message-Id: <E16Lpre-000444-00@ns.censoft.com>

We do have such a beast in pre8 - Its called GrLoadImageFromBuffer() and 
GrDrawImageFromBuffer().  

The only thing that we are currently missing is a native way to handle 
compiled in XPMs.  If the list agrees, I may break the existing XPM support 
by changing the internal decoder to use XPM data (ie, the actual char array), 
instead of an XPM file.  Then, we could add a client side function to decide 
an actual XPM file and send across the data.  I know Julian would like this, 
but is there anyone who really uses the current XPM support and would get 
angry if I borked it?

Jordan

On Wednesday 02 January 2002 11:08, David Erickson mentioned:
> Is there any plan to support loading images from memory instead of just
> disk? I see in the jpeg and png code the file pointer is being passed to
> the library calls.
>
> How about using fmemopen() in something like:
> GdLoadImageFromMemory(PSD psd, const char *mem, int len, int flags)
>
> I've never used fmemopen, and I have no man page for it, but I saw it in my
> /usr/include/stdio.h file. Is it standard?

Previous by date: 2 Jan 2002 18:13:45 -0000 Re: loading images from memory, Peter Kerr
Next by date: 2 Jan 2002 18:13:45 -0000 GdLoadImageFromFile, Iris Huang
Previous in thread: 2 Jan 2002 18:13:45 -0000 Re: loading images from memory, Peter Kerr
Next in thread: 2 Jan 2002 18:13:45 -0000 Re: loading images from memory, Julian Smart


Powered by ezmlm-browse 0.20.