Advertisement
Not a member of Pastebin yet?
Sign Up,
it unlocks many cool features!
- for (int i = 0; i < PictureInfo->biHeight; i++) {
- unsigned tmpVal = 0;
- for (int j = 0; j < PictureInfo->biWidth; j++) {
- pixMap[i][j] = 0;
- iStream.read(helpVar, 3 * sizeof(char)); //B
- tmpVal = (unsigned char)helpVar[0];
- //average += tmpVal;
- tmpVal = tmpVal << 16;
- pixMap[i][j] += tmpVal;
- tmpVal = (unsigned char)helpVar[1]; //G
- tmpVal = tmpVal << 8;
- pixMap[i][j] += tmpVal;
- tmpVal = (unsigned char)helpVar[2]; //R
- pixMap[i][j] += tmpVal;
- }
- }
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement