DWORD-aligned bytes is needed.
Instead of
#define TJPAD(p) (((p)+3)&(~3))
int paddedRow = TJPAD(bitmap.bmWidth*bitmap.bmBitsPixel/8);
Have
#define TJPAD(bits) ((((bits) + 31) & ~31) >> 3)
int...
CodeGuru Home | VC++ / MFC / C++ | .NET / C# | Visual Basic | VB Forums | Developer.com |
Search:Type: Posts; User: olivthill2 Search: Search took 0.04 seconds.
Results 1 to 1 of 1
|
Click Here to Expand Forum to Full Width |