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
 iebitmap and bitmap
 New Topic  Reply to Topic
Author Previous Topic Topic Next Topic  

pierrotsc

USA
499 Posts

Posted - Oct 03 2014 :  05:40:44  Show Profile  Reply
I have legacybitmap set to true but can i still use statements ;ike iamgeenvect.iebitmap.width or is it better to use imageenvect.bitmap.width since legacybitmap is true.
thanks.
Pierre

w2m

USA
1990 Posts

Posted - Oct 03 2014 :  05:50:26  Show Profile  Reply
It would only be "better" to use IEBitmap if LegacyBitmap is false, because there will not be a Bitmap in the Bitmap property. If you set LegacyBitmap to true then you can use either because there will be a IEBitmap and a Bitmap.

Bill Miller
Adirondack Software & Graphics
Email: w2m@hughes.net
EBook: http://www.imageen.com/ebook/
Custom Commercial ImageEn Development
Go to Top of Page

pierrotsc

USA
499 Posts

Posted - Oct 03 2014 :  06:13:37  Show Profile  Reply
thanks..so i am am assuming that when you set legacybitmap to false, you are saving memory space because no bitmap are loaded. in this case, if i need a bitmap from an iebitmap, is there a way to get that? i am using graphics 32 in one of my computation and i cannot assign an iebitmap to a bitmap 32. in this case, i would like to be able to convert the iebitmap to a bitmap with legacybitmap to false. is that feasible?
thanks
Pierre
Go to Top of Page

w2m

USA
1990 Posts

Posted - Oct 03 2014 :  08:29:41  Show Profile  Reply
Maybe try ImageEnVect.IEBitmap.VclBitmap. I have not tested this however but I think I used it a few times.

property VclBitmap: TBitmap;

Description
Contains the encapsulated TBitmap object.


Bill Miller
Adirondack Software & Graphics
Email: w2m@hughes.net
EBook: http://www.imageen.com/ebook/
Custom Commercial ImageEn Development
Go to Top of Page

pierrotsc

USA
499 Posts

Posted - Oct 03 2014 :  09:59:13  Show Profile  Reply
that does work. Thanks. Is there any advantages of having the legacybitmap set to false?
Pierre
Go to Top of Page

xequte

39142 Posts

Posted - Oct 03 2014 :  17:50:43  Show Profile  Reply
Hi Pierre

Yes, it is better to set LegacyBitmap to false, then it uses ImageEn's IEBitmap, instead of a regular TBitmap. IEBitmap is much more memory efficient, particularly with large images.



Nigel
Xequte Software
www.xequte.com
nigel@xequte.com
Go to Top of Page

pierrotsc

USA
499 Posts

Posted - Oct 03 2014 :  17:55:27  Show Profile  Reply
Will do then. Thanks
Go to Top of Page

Fishous

USA
11 Posts

Posted - Oct 16 2014 :  03:19:17  Show Profile  Reply
I'm wondering why the help file for LegacyBitmap says "Note: LegacyBitmap should be set to true for new applications."?
Go to Top of Page

xequte

39142 Posts

Posted - Oct 18 2014 :  16:07:56  Show Profile  Reply
Sorry, that is a typo. It is fixed in the latest update.



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