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
 save Grouped Object

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
peberhardt Posted - Apr 03 2017 : 13:07:43
Hello,

i have 2 lines and a box grouped, it is possible to save the group
to a external file?

I need the group more often and want to paste this over a button again

i found this


// save
ImageEnView1.SaveSelectionToFile('d:\test');


// restore
ImageEnView1.LoadSelectionFromFile('d:\test');


i found sel1.Position := 0;

but what is sel1?

the file save is ok, but i can not restore......


best regards
soory for my bad english

peter
3   L A T E S T    R E P L I E S    (Newest First)
xequte Posted - Apr 04 2017 : 16:52:16
Hi Peter

Probably the easiest method would be to create a temporary TImageEnVect in memory and copy the desired objects to it:

https://www.imageen.com/help/TImageEnVect.CopyObjectTo.html

Then save the temporary ievect to IEV.

https://www.imageen.com/help/TImageEnVect.SaveToFileIEV.html


When loading you can just use the append parameter of LoadFromFileIEV:

https://www.imageen.com/help/TImageEnVect.LoadFromFileIEV.html


Nigel
Xequte Software
www.xequte.com
nigel@xequte.com
peberhardt Posted - Apr 04 2017 : 01:40:21
Hello,

soory, it is TImageEnVect objects

best regards
peter
xequte Posted - Apr 03 2017 : 19:52:28
Hi Peter

Sorry, when you say 2 lines and a box, what kind of objects are they? TImageEnVect objects? or TImageEnView image layers?

Nigel
Xequte Software
www.xequte.com
nigel@xequte.com