nanogui: Inline XPMs?
Subject:
Re: [nanogui] Inline XPMs?
From:
"Greg Haerr" ####@####.####
Date:
3 Jul 2001 14:07:11 -0000
Message-Id: <039401c103c9$0c90a380$3aba46a6@xmission.com>
: I'd like to convert inline-XPMs into HBITMAPs, presumably via a DrawDIB
: call on a memory DC.
:
: I see from the archive that inline (#included) XPMs weren't supported as of
: Jan. this year -- but maybe someone has written code to do this since?
The CVS version of Microwindows has a new function, GrNewBitmapFromData,
which will decode inline bitmap data. This might be combined with the
devimage.c code that decodes XPMs, and you should have what you
need. GrNewBitmapFromData is in nanox/nxutil.c.
Regards,
Greg