nanogui: convbmp and GR_BITMAP vs.MWUCHAR
Subject:
Re: [nanogui] convbmp and GR_BITMAP vs.MWUCHAR
From:
Alex Holden ####@####.####
Date:
7 May 2004 10:15:48 +0100
Message-Id: <409B53A4.5070707@linuxhacker.org>
tj wrote:
> GrNewBitmapRegion() requires a pointer to GR_BITMAP. So, how do you get
> GR_BITMAP out of convbmp?
I think I used convpbm (in demos/nanox) to make tuxmask.h and the
bitmaps in nxeyes.h actually. It has a bug that causes it to create
header files that claim they were created by convbmp. You can make a PBM
file using something like:
jpegtopnm input.jpg | ppmtopgm | pgmtopbm > output.pbm
You'll need the netpbm tools installed to do that.
--
------------ Alex Holden - http://www.linuxhacker.org ------------
If it doesn't work, you're not hitting it with a big enough hammer