Originally posted by: Jaeman Jo
In DDBToDIB()
Wrong: if( nColors > 256 ) nColors = 0;
Right: if ( bi.biBitCount > 8 ) nColors = 0;
Because previous line has a wrong shift operation.
If bi.biBitCount is a 32, nColors becomes a one.
int nColors = (1 << bi.biBitCount);
Reply
Originally posted by: fb
Well done
ReplyOriginally posted by: Amn
very usefull article, especially since it gives insight into JPEG compression, and proprietary BMP routines, not to mention the basis for capturing window contents
Thumbs up !
Reply
Originally posted by: Jeff
You do not know how to use WinZip boy?
Reply