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
 Params UserData Problöem

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
klausdoege Posted - Aug 18 2020 : 13:54:23
Hello,
I use the parameters ImageEnView.CurrentLayer.UserData and ImageEnView1.CurrentLayer.UserDataLen. Both works fine.
Now I want to transfer the LayerX to another LayerY, but with the parameters UserData.
I do it like this:
ImageEnVectX.CurrentLayer.Assign(ImageEnViewY.CurrentLayer);
But unfortunately the UserData parameters are not transferred.
ImageEnviewY has the Params UserData but ImageEnVectX has not the params.
What do I have to do ?

Klaus
www.klausdoege.de
2   L A T E S T    R E P L I E S    (Newest First)
klausdoege Posted - Aug 21 2020 : 08:20:42
Hello Nigel,
OK, then I have to write my own routine that copies the data.

Klaus
www.klausdoege.de
xequte Posted - Aug 19 2020 : 18:11:38
Hi Klaus

Because we don't know what UserData contains we cannot safely assign it. It may be an allocated buffer or object, so transferring/copying it could cause memory leaks or invalid deallocations.


Nigel
Xequte Software
www.imageen.com