[Lazarus] TImage wrong image format

Leonardo M. Ramé l.rame at griensu.com
Fri Nov 26 15:38:03 CET 2010


On 2010-11-26 15:29:42 +0100, Mattias Gaertner wrote:
> On Fri, 26 Nov 2010 11:23:01 -0300
> Leonardo M. Ramé <l.rame at griensu.com> wrote:
> 
> > On 2010-11-26 10:55:58 -0300, Leonardo M. Ramé wrote:
> > > 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!
> > > 
> > 
> > Well, the "Wrong image format" error is fixed, but I found a new one.
> > 
> > When a TImage is created at Design-Time, with an image assigned to its
> > Picture property, the image is not shown at run-time.
> > 
> > Example:
> > 
> > 1) Place a TImage on a new form.
> > 2) Object Inspector -> Picture -> Click on "..." to load an image.
> > 3) Load an image
> > 4) You can see the image loaded on the TImage.
> > 5) Run the app. The TImage doesn shows its picture.
> > 
> > Lazarus 0.9.29 rev 28500 - Linux x86_64
> > FPC rev 16446 - Linux x86_64
> > Ubuntu 10.04 - 64bits
> 
> It works here:
>  
> Lazarus 0.9.29 rev 28500 - Linux x86_64
> FPC 2.4.2 - Linux x86_64
> Ubuntu 10.10 - 64bits
> 
> Can you provide an example image where it does not work?
> 
> Mattias
> 

There it is.

-- 
Leonardo M. Ramé
http://leonardorame.blogspot.com
-------------- next part --------------
A non-text attachment was scrubbed...
Name: timage-error.tar.bz2
Type: application/octet-stream
Size: 29513 bytes
Desc: not available
URL: <http://lists.lazarus-ide.org/pipermail/lazarus/attachments/20101126/935e32e5/attachment-0003.obj>


More information about the Lazarus mailing list