[lazarus] TImage not displaying image?

Andrew Johnson aj_genius at hotmail.com
Thu Sep 5 11:58:38 EDT 2002


On 05 Sep 2002 10:44:43 -0400
Tony Maro <tonym at nlisc.com> wrote:

>mybitmap := TBitmap.Create;
>mybitmap.loadfromfile('test.bmp');
>image1.Picture.Bitmap := mybitmap;

>Would something along these lines be valid, or do I use the ASSIGN method?

Yes this should work, but Assign would not.. TBitmap.Assign has not been 
implemented yet for various reason.. Also because Assign does not work the 
TPicture actually uses
the Bitmap passed, not just a copy of it, therefore you should not free it 
when done.. as this will cause an AV in TPicture.

Andrew

_________________________________________________________________
Chat with friends online, try MSN Messenger: http://messenger.msn.com






More information about the Lazarus mailing list