[Lazarus] Code Explorer synchronized with caret position

theo xpde at theo.ch
Tue Jul 6 11:57:55 CEST 2010


Wolfram Söns wrote:
> Hello Mark, thanks for your replies.
> 
> "I suspect that the colour representation varies, possibly depending on the system properties as interpreted by the TImage object."
> 
> I think its something in that direction.
> 
> "Noting your earlier "in timage windows and mac are the same, in tlazintfimage only windows shows the correct values.", I'd suggest posting both with an indication of which is which.
> 
> No, the Image is the same in both cases. 
> I'll ry to explain it again:
> 
> There are uncrompressed bitmaps or jpgs as additional thumbnail views inside of almost any file of a digital camera.
> I read this files and extract this pictures into a TBitmap for later use. 
>  
> When I show this bitmap (for example with a TImage Component on a form) anything is fine.
> 
> Then I try to read out the RGB Values from this bitmap again, the difference is the following:
> - When I read the values directly out from the Bitmap, it works (Windows and Mac)
> - When I use a TLazIntfImage for performance reasons here (and after filling the LazIntfImage with TLazIntf.LoadFromBitmap... ) then only the Windows version still shows the correct RGB valuesm which I get with FPColor.red and so on.
> 
> I hope you could understand my problem. 

How do you access the pixel data ? Did you notice LazIntfImage.Description ?

On Mac and Windows thre is a different order of the RGB components

Marc





More information about the Lazarus mailing list