Advertisement
Not a member of Pastebin yet?
Sign Up,
it unlocks many cool features!
- int CImgProc::getAlignedWidth()
- {
- if (fileBuffer == nullptr)
- return -1;
- int bitCountMultiplier = infoPtr->bmiHeader.biBitCount / 8;
- int width = bitCountMultiplier * GetWidth();
- return width % 4 == 0 ? width : width + 4 - width % 4;
- }
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement