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
 Using mlCreateShapeLayers but keeping shape within bounds of the displayed image
 New Topic  Reply to Topic
Author Previous Topic Topic Next Topic  

jeffp

USA
42 Posts

Posted - Nov 19 2024 :  12:02:47  Show Profile  Reply
When using MouseInteractLayers := [mlCreateShapeLayers]; in the TImageEnView, I can select an area for my shape both on and off the image displaying in the TImageEnView.

Selecting an area outside the image is causing problems. I there an easy way to limit the selection area when creating a shape to the coordinates of the displayed image so a shape cannot be create outside the image bounds?



jp

xequte

38619 Posts

Posted - Nov 19 2024 :  14:48:44  Show Profile  Reply
Hi Jeff

You can use:

// Layers cannot be created or dragged beyond the background layer
ImageEnView1.LayerOptions := ImageEnView1.LayerOptions + [ loPreventOutOfBounds ];

http://www.imageen.com/help/TImageEnView.LayerOptions.html

Nigel
Xequte Software
www.imageen.com
Go to Top of Page

jeffp

USA
42 Posts

Posted - Nov 19 2024 :  18:44:13  Show Profile  Reply
Worked! Thanks

jp
Go to Top of Page
  Previous Topic Topic Next Topic  
 New Topic  Reply to Topic
Jump To: