[Lazarus] LazIntfImage and OSX

Mattias Gaertner nc-gaertnma at netcologne.de
Tue Jul 6 11:37:23 CEST 2010


On Tue, 06 Jul 2010 09:20:58 +0000
Mark Morgan Lloyd <markMLl.lazarus at telemetry.co.uk> wrote:

> Marc Weustink wrote:
> 
> >> I access the pixel data directly via FPColor:=TLazIntfImage.Colors[x,y]
> >>
> >> Even if there is a difference in the internal layout, with using this
> >> function it should be correct anyway.
> >> Or am I missing something here?
> > 
> > You're right. This should always return the correct value. (there are 
> > different ways to access the pixels, therefore I asked)
> 
> Can I check one thing here please: am I correct in my understanding that 
> usage as above /should/ always return the correct value,

Yes.


> but 
> TLazIntfImage.GetDataLineStart() returns a pointer to a row of 
> system-specific elements? Because that's what I think I'm seeing...

Yes.
TLazIntfImage is a TFPCustomImageTFPImage and can handle a wide range
of different memory images.
Probably the carbon interface returned a wrong description.

Mattias
 




More information about the Lazarus mailing list