Re: [Lazarus] TLazIntfImage GetDataLineStart

2010-07-19 Thread Marc Weustink
theo wrote: Both LoadFromRawImage and LoadFromIntfImage seem to work here without any conversion by me. I'm now on a 16bit display for testing, and it has no problem showing the BPP32_B8G8R8A8_BIO_TTB image using either mehtod. Complicated matter without documentation. ;-) Thank you both Marc

Re: [Lazarus] TLazIntfImage GetDataLineStart

2010-07-18 Thread theo
Both LoadFromRawImage and LoadFromIntfImage seem to work here without any conversion by me. I'm now on a 16bit display for testing, and it has no problem showing the BPP32_B8G8R8A8_BIO_TTB image using either mehtod. Complicated matter without documentation. ;-) Thank you both Marc an Mattias

Re: [Lazarus] TLazIntfImage GetDataLineStart

2010-07-17 Thread theo
The TLazIntfImage.Colors property converts automatically. Thanks, I am aware of this. / Is it safe to assume that the pointer from IntfImg.GetDataLineStart is // always pointing to a PRGBTripleArray ? / No. So the wiki example is misleading? Is there a built in method in TLazIntfImage to

Re: [Lazarus] TLazIntfImage GetDataLineStart

2010-07-17 Thread Mattias Gaertner
On Sat, 17 Jul 2010 23:45:39 +0200 theo x...@theo.ch wrote: The TLazIntfImage.Colors property converts automatically. Thanks, I am aware of this. / Is it safe to assume that the pointer from IntfImg.GetDataLineStart is // always pointing to a PRGBTripleArray ? / No. So the wiki

Re: [Lazarus] TLazIntfImage GetDataLineStart

2010-07-17 Thread theo
Ah, now I see. Thanks! I tried like below, it seems to work. TBitmap.LoadFromIntfImage seems to care about the back-conversion, right? procedure TForm1.Button1Click(Sender:TObject); var li1,li2:TLazIntfImage; Description: TRawImageDescription; Row1: PRGBQuadArray; i:integer; begin

Re: [Lazarus] TLazIntfImage GetDataLineStart

2010-07-17 Thread Mattias Gaertner
On Sun, 18 Jul 2010 01:02:03 +0200 theo x...@theo.ch wrote: Ah, now I see. Thanks! I tried like below, it seems to work. TBitmap.LoadFromIntfImage seems to care about the back-conversion, right? AFAIK: no The intfimage must be in a compatible format. Mattias --

Re: [Lazarus] TLazIntfImage GetDataLineStart

2010-07-17 Thread Marc Weustink
Mattias Gaertner wrote: On Sun, 18 Jul 2010 01:02:03 +0200 theo x...@theo.ch wrote: Ah, now I see. Thanks! I tried like below, it seems to work. TBitmap.LoadFromIntfImage seems to care about the back-conversion, right? AFAIK: no The intfimage must be in a compatible format. I thought it