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
 Custom selection does not work after LayerAdd

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
yogiyang Posted - Feb 11 2019 : 08:15:40
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
2   L A T E S T    R E P L I E S    (Newest First)
xequte Posted - Feb 24 2019 : 23:36:09
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
yogiyang Posted - Feb 20 2019 : 05:08:43
Hello Nigel,

Did you try this code?

Can you reproduce the problem at your end?

TIA


Yogi Yang