can someone explain me the following line of code
LPBITMAPINFO lpbi;
i don't understand the use of new BYTE to inizialize the LPBITMAINFO variable...i expected something like this...
i don't understand the use of BYTE to initialize lpbi...it's probably a pointer to BITMAPINFOHEADER struct, but why use BYTE as type?
LPBITMAPINFO lpbi;
Code:
lpbi = (LPBITMAPINFO) new BYTE[sizeof(BITMAPINFOHEADER) + (256 * sizeof(RGBQUAD))];
Code:
lpbi = new LPBITMAINFO[sizeof(BITMAPINFOHEADER) + (256 * sizeof(RGBQUAD))];
i don't understand the use of BYTE to initialize lpbi...it's probably a pointer to BITMAPINFOHEADER struct, but why use BYTE as type?