Here's some code that writes a bitmap. You can integrate the BitmapManager
class to build and save the bitmap pixel by pixel.
http://www.koders.com/cpp/fid7537D5C...?s=2d+bmp+save
DR
"William Cleveland" <> wrote in message
news:...
> A portable bitmap file (.pbm, usually) is a few header lines, followed
> by a raw, two-dimensional array of bytes. Using system IO, you can
> just write() your array of bytes with a single call, after you write
> the header lines (probably with a sprintf call or the IO Streams
> equivilant, followed by a single write() call for that buffer).
>
> If you're talking about the Windows .bmp format, it's not really a
> bitmap. It's complicated enough that you'll probably want to find
> a library.
>
> Bill
>
>
> Yicheng Li wrote:
> > Hi, I've got an array of byte values (300 by 300) that I'm trying to
> > output as a bitmap file. I'm on the Windows 2000 platform, and I was
> > hoping for some kind of API or library where I could just create a
> > bitmap file. Is there anything like this, or am I pretty much going
> > to have to manually write the byte by byte.
> >
> > Thanks in advance,
> > YL
>