title: Understanding TBitmap.Scanline in Delphi & C++ Builder
body: <p>Delphi &amp; C++ Builder have a TBitmap class with a Scanline property which returns the memory of pixels of the bitmap.  This seems to be different when I look in a hex editor of the BMP file.</p>
  
  <p>I'm trying to port a C++ Builder app to Java, and would like to understand the algorithm in Scanline.  If I have the file, how do I generate the memory array like Scanline does? What is the exact spec behind Scanline?</p>
  
  <p>Clarifcation: The BMP is a Windows 24bit DIB.  I don't provide any other info in the code; C++ Builder seems to load it into some type of memory structure, but it's not byte-for-byte.  Would like to know what the spec of that structture is.</p>