How to calculate the size of the buffer for GetDIBits.
Graphics
1
Posts
1
Posters
1
Views
1
Watching
-
Hi, I have a problem, In the example code from microsoft [Capturing an Image] it gets me confused how this formula would come. DWORD dwBmpSize = ((bmpScreen.bmWidth * bi.biBitCount + 31) / 32) * 4 * bmpScreen.bmHeight; if I try it to bmpScreen.bmWidth = 1 and bmpScreen.bmHeight = 1 seems to have an extra bytes. Help!!!