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
 How to duplicate Text Layer as...
 New Topic  Reply to Topic
Author Previous Topic Topic Next Topic  

yogiyang

India
725 Posts

Posted - Apr 07 2020 :  09:11:04  Show Profile  Reply
Hello,

I want to duplicate Text Layer as Text Layer. Currently I am using this code to duplicate current layer:
ieViewMain.LayersCreateFromSelection

But the duplicate layer is coming up as Image Layer. How to duplicate a Text layer and keep it as Text Layer?

TIA


Yogi Yang

xequte

38189 Posts

Posted - Apr 09 2020 :  06:44:45  Show Profile  Reply
Hi Yogi

You can use the LayersAdd or LayersInsert overload to clone a layer:

// Add a clone of the current layer
ImageEnView1.LayersAdd( ImageEnView1.CurrentLayer );


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