Lazarus

Programming => Graphics and Multimedia => Graphics => Topic started by: Fodox on April 17, 2008, 06:06:17 pm

Title: Different TImage behaviour from different widget
Post by: Fodox on April 17, 2008, 06:06:17 pm
Hello, I have another question.
Under Windows, I have a TImage and I load it with TBitmap from a record in an archive (using ZeosLib). The code is:
Code: [Select]

BMP:=tBitmap.Create;
MS:=tMemoryStream.Create;
tBlobField(Query.FieldByName('myfield')).SaveToStream(MS);
MS.Position:=0;
BMP.LoadFromStream(MS);
Image.Picture.Assign(BMP);

If I use Windows widget It work, but if I switch to GTK2 widget the Image remain empty.
Also trying to compile under Ubuntu, with GTK2, the Image remain empty.

Can anyone help me?
TinyPortal © 2005-2018