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
 Extension Change and custom data and new versions.
 New Topic  Reply to Topic
Author Previous Topic Topic Next Topic  

scpsolutions

Canada
6 Posts

Posted - Nov 19 2024 :  07:25:16  Show Profile  Reply
Hi,

Can I change the extension imageen uses to something else. If I save as *.abc for example, will it still recognize it as an imageen layered image?

I have to create other types of layers that are based on bitmap layers, but contain a bunch of custom data in order to show my own properties and such to be able to recreate the bitmap. I did see the demo on storing customer data.

But I may change the custom data in the future as new features are added and such. I am wondering what is the best way to deal with changes so my users don't have too. I don't want to have file types *.ab1, *.ab2 and so on. The imageen layers will not be complicated or big and there won't be many of them. I am wondering if I should stream the data to a sqllite database and store each layer as a blob (json or xml) or something, that way new fields can be added easily and be loaded with default values if they are not present. There would be two blobs per layer(bitmap if one is used, and some text format on how to deal with the bitmap or the settings to recreate the text, shape or line layers). Do you think this approach will work? Any other recommendations?

How does imageen deal with changes between imageen versions?

Thanks,
Marc

Marc Ouellette

xequte

38619 Posts

Posted - Nov 19 2024 :  15:20:28  Show Profile  Reply
Hi Marc

You can use any extension to load/save layer and image files with ImageEn.

However, if you do, you must use a loading/saving method that does not rely on the extension to determine the type, e.g. for layers you can use:

http://www.imageen.com/help/TImageEnIO.SaveToFileIEN.html
http://www.imageen.com/help/TImageEnIO.LoadFromFileIEN.html

Or you can use a general method that analyzes the file content:

http://www.imageen.com/help/TImageEnIO.LoadFromFileAuto.html


Your method sounds fine, and does not appear to need file extensions at all as you would stream directly between ImageEn and your database.


Newer versions of ImageEn can load layer files from any older version of ImageEn.
Older versions of ImageEn can only load layer files from newer versions if they are saved with a compatible version (i.e. <= the version of that EXE).

See: http://www.imageen.com/help/TIOParams.IEN_SaveAsVersion.html


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