[Lazarus] Byte-Alignment of TBitmap

Martok listbox at martoks-place.de
Mon Jan 1 20:17:31 CET 2018


Hi all,

this showed up in the Discussion around 32876 and 30509:
> LCL Tbitmap supports 1,24 and 32 bit images from what I see.

That is indeed true:
  luma.PixelFormat:= pf8bit;
  luma.SetSize(100, 100);
  // now: luma.RawImage.Description.Depth == 24

That of course means that the alignment for RawImage access (using Scanline) is
wrong, and code ported from Delphi doesn't work at all.

How is one supposed to do this? Or is that a not implemented feature?


-- 
Regards,
Martok

Ceterum censeo b32079 esse sanandam.



More information about the Lazarus mailing list