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

 

ImageEn Forum
Profile    Join    Active Topics    Forum FAQ    Search this forumSearch
 All Forums
 ImageEn Library for Delphi, C++ and .Net
 ImageEn and IEvolution Support Forum
 Extension Change and custom data and new versions.

Note: You must be registered in order to post a reply.
To register, click here. Registration is FREE!

View 
UserName:
Password:
Format  Bold Italicized Underline  Align Left Centered Align Right  Horizontal Rule  Insert Hyperlink   Browse for an image to attach to your post Browse for a zip to attach to your post Insert Code  Insert Quote Insert List
   
Message 

 

Emoji
Smile [:)] Big Smile [:D] Cool [8D] Blush [:I]
Tongue [:P] Evil [):] Wink [;)] Black Eye [B)]
Frown [:(] Shocked [:0] Angry [:(!] Sleepy [|)]
Kisses [:X] Approve [^] Disapprove [V] Question [?]

 
Check here to subscribe to this topic.
   

T O P I C    R E V I E W
scpsolutions Posted - Nov 19 2024 : 07:25:16
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
1   L A T E S T    R E P L I E S    (Newest First)
xequte Posted - Nov 19 2024 : 15:20:28
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