Phil Daley wrote:
>> typedef unsigned char Data8;
>> Data8* mpBMIBuffer;
>> int nBitMapInfoSize;
>> BITMAPINFO* pBMI;
>> int nNumColors = 8;
>> nBitMapInfoSize = sizeof(BITMAPINFOHEADER) + sizeof(RGBQUAD) * nNumColors;
>> mpBMIBuffer = new Data8[nBitMapInfoSize];
>> pBMI = (BITMAPINFO*)mpBMIBuffer;
Not if it's in a function that can create all different kinds of BITMAPs.

Is that function public (from a library somewhere) or is it in your own library? I'm starting to go nuts over all these different bitmap formats. Every time when I finish some code where I need to use them I think I 'get' it, only to find out that two weeks later I have to stare at MSDN and my Petzold again for hours before I figure out whether I should use DIB's or DDB's and how I should load the data from the format that I need and manipulate the image data...


cheers,

roel





Reply via email to