ImageEn for Delphi and C++ Builder ImageEn for Delphi and C++ Builder

 

ImageEn Forum
Profile    Join    Active Topics    Forum FAQ    Search this forumSearch
Forum membership is Free!  Click Join to sign-up
Username:
Password:
Save Password
Forgot your Password?

 All Forums
 ImageEn Library for Delphi, C++ and .Net
 ImageEn and IEvolution Support Forum
 How to assign TBitmap to ImageEnView1.Bitmap?
 New Topic  Reply to Topic
Author Previous Topic Topic Next Topic  

tedfine

10 Posts

Posted - Dec 28 2017 :  15:33:29  Show Profile  Reply
If I call the code below repeatedly:


ImageEnView1.IO.IEBitmap.CopyFromTBitmap(BitMap);


Do I have to free ImageEnView1.IO.IEBitmap first, or does ImageEn handle memory management for me?

xequte

39145 Posts

Posted - Dec 28 2017 :  20:24:21  Show Profile  Reply
Hi

Memory management of the IEBitmap is handled by ImageEn. Naturally you will have to handle the bitmap yourself. I prefer just to assign, e.g.


bmp := TBitmap.create;
bmp.LoadFromFile( 'C:\im.bmp' );
ImageEnView1.IEBitmap.assign( bmp );
bmp.Free;


Nigel
Xequte Software
www.imageen.com
Go to Top of Page
  Previous Topic Topic Next Topic  
 New Topic  Reply to Topic
Jump To: