[Lazarus] TImage wrong image format

Leonardo M. Ramé l.rame at griensu.com
Fri Nov 26 14:55:58 CET 2010


On 2010-11-26 09:39:30 -0300, Leonardo M. Ramé wrote:
> Hi, I think I found a bug after following the next steps:
> 
> 1) Place a TImage on a newly created form.
> 2) Click on "..." on Object Inspector -> Picture and load an image (I
> tested with jpeg, png, png all with the same results).
> 3) Go to the form, and you'll see the image.
> 4) Right click on the form and select View Source (.lfm), here you can
> see the object Image1 and its Picture.Data containing the image info.
> 5) Close the .lfm tab
> 6) Press F12 to see the form again and you'll get this error:
> 
> "Stream=TForm1:Root=:TForm1
> Component Class: TImage
> Error reading Image1.Picture.Data: Wrong imagre format
> Stream position: 28777"
> 
> I'm using:
> 
> Free Pascal Compiler version 2.5.1 [2010/11/24] for x86_64 - Linux
> Lazarus 0.9.29 - Rev 28470 - x86_64-linux-gtk 2
> -- 

Udated FPC & Lazarus and the bug seems to be fixed. 

Thanks!

-- 
Leonardo M. Ramé
http://leonardorame.blogspot.com




More information about the Lazarus mailing list