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
 Custom selection does not work after LayerAdd
 New Topic  Reply to Topic
Author Previous Topic Topic Next Topic  

yogiyang

India
725 Posts

Posted - Feb 11 2019 :  08:15:40  Show Profile  Reply
Hello,

This is a very weired.

I am using following code to duplicate layer as it is faster. After duplicating the layer I am trying to create custom selection which is not working for the first time.

Yes you read it right. It will not work for the first time but it will work for the second time.

I am attached a sample project to show this bug.

attach/yogiyang/20192118148_LayerAndCustomSelection.zip
76.34 KB

To replicate the problem I am describing in the provided sample please follow these steps:
  • Click on Open Image and load an image
  • Click on Create Custom Sel, you will see that there are three layers but there is not custom selection happening
  • Click on Create Custom Sel Again, now you will see selection has been made properly, but LayersCreateFromSelection does not work


TIA


Yogi Yang

yogiyang

India
725 Posts

Posted - Feb 20 2019 :  05:08:43  Show Profile  Reply
Hello Nigel,

Did you try this code?

Can you reproduce the problem at your end?

TIA


Yogi Yang
Go to Top of Page

xequte

38176 Posts

Posted - Feb 24 2019 :  23:36:09  Show Profile  Reply
Hi Yogi

Sorry for the delay, we've been busy with the 8.3.0 release and haven't found time to look at your project.

Setting SelectionMaskDepth clears the selection. Please set it before your custom selection code.

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