You must use "packed" for TBitmapPixel. Otherwise it will mean 32-bit, or even 64-bit memory alignment on 64-bit compilers.
Well, unfortunately, but you are wrong.
These data types are used in my game and ensure correct bitmap processing with default data alignment settings on Windows systems. Everything is fine, I do not need to use extra packing for record and array, just see the attachment.
Scanline specifically means continuous series of pixel data with no empty gaps between records.
If I did not know such basics, I would not be able to write any subroutine that processes bitmaps using
ScanLine. And as my game shows, it is quite the opposite.
