Forum > Graphics

Different TImage behaviour from different widget

(1/1)

Fodox:
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: ---
BMP:=tBitmap.Create;
MS:=tMemoryStream.Create;
tBlobField(Query.FieldByName('myfield')).SaveToStream(MS);
MS.Position:=0;
BMP.LoadFromStream(MS);
Image.Picture.Assign(BMP);

--- End code ---

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?

Navigation

[0] Message Index

Go to full version