At 4/27/2004 10:47 AM, Roel Vanhout wrote:

>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...


I, or somebody here, wrote it.

We use thumbnails a LOT, and DIB is the way we make them.

We also use them for capturing a portion of an image from the screen.

Phil Daley          < AutoDesk >
http://www.conknet.com/~p_daley







Reply via email to