nanogui: loading images from memory


Previous by date: 2 Jan 2002 18:25:25 -0000 GdLoadImageFromFile, Iris Huang
Next by date: 2 Jan 2002 18:25:25 -0000 Re: loading images from memory, Jordan Crouse
Previous in thread: 2 Jan 2002 18:25:25 -0000 Re: loading images from memory, Jordan Crouse
Next in thread: 2 Jan 2002 18:25:25 -0000 Re: loading images from memory, Jordan Crouse

Subject: Re: [nanogui] loading images from memory
From: Julian Smart ####@####.####
Date: 2 Jan 2002 18:25:25 -0000
Message-Id: <4.2.0.58.20020102182031.05f1aaf0@pop>

At 11:07 AM 1/2/02 -0700, Jordan Crouse wrote:
 >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?

Actually I discovered how to (partially) work around it -- wxWindows now has its own,
self-contained XPM decoder, and I'm using this for loading XPM data into a wxImage,
and then using a very dumb piece of code to copy the wxImage to a wxBitmap which
can be drawn onto device contexts.

However, I expect the official MicroWindows API will be a more efficient way to
load XPM data into [wx]Bitmaps more directly.

BTW if anyone knows how to do transparency in MicroWindows (WIN32) using a bitmap
and a mask bitmap, that would be interesting. When I created a mono bitmap and
used that in BitBlt as per normal WIN32 code, MicroWindows complains about the depth
not being suitable for the DC. When I create the mask at the display depth instead, the
operations that work for 'real' WIN32 to do transparency, don't work under MicroWindows.

Thanks,

Julian
-- 
Red Hat UK Ltd, Unit 200 Rustat House, 62 Clifton Road, Cambridge, UK. CB1 7EG Tel: +44 (1223) 271063

Previous by date: 2 Jan 2002 18:25:25 -0000 GdLoadImageFromFile, Iris Huang
Next by date: 2 Jan 2002 18:25:25 -0000 Re: loading images from memory, Jordan Crouse
Previous in thread: 2 Jan 2002 18:25:25 -0000 Re: loading images from memory, Jordan Crouse
Next in thread: 2 Jan 2002 18:25:25 -0000 Re: loading images from memory, Jordan Crouse


Powered by ezmlm-browse 0.20.