Re: [Lazarus] Byte-Alignment of TBitmap

2018-01-01 Thread Martok via Lazarus
Am 01.01.2018 um 20:22 schrieb Marc Weustink via Lazarus: > Why does than mean that the alignment is wrong? Based on what did you draw > that conclusion? The value of PixelFormat has little relation to the actual pixel format, except for 1bpp and 32bpp. For example, a pf8bit bitmap should have 1 B

Re: [Lazarus] Byte-Alignment of TBitmap

2018-01-01 Thread Marc Weustink via Lazarus
On January 1, 2018 8:17:31 PM GMT+01:00, Martok via Lazarus wrote: >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: lum

[Lazarus] Byte-Alignment of TBitmap

2018-01-01 Thread Martok via Lazarus
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