Subj : BITMAPINFO To : borland.public.cpp.borlandcpp From : Tristan Szaniawski Date : Wed Aug 06 2003 05:13 am In Win3.1 SDK, in the description of BITMAPINFO structure it is said: "The bits in the array are packed together, but each scan line must be zero-padded to end on a LONG boundary. Segment boundaries, however, can appear anywhere in the bitmap." It`s about DIB array bits. What does 'zero-padded to end on a LONG boundary' mean ? SetDIBitsToDevice does not display 258x265x8bit bitmap, but displays 204x293x24bit bitmap. 0xFFFF / 258 = 254 + 4 so the line begins in one segment and ends in another, but 0xFFFF / (204*3) = 107 + 52 so this line also starts in one segment and ends in another. So why 24bit bitmap is displayed and 8bit isn`t ? I work under win16bit Thank You .