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
 Using mlCreateShapeLayers but keeping shape within bounds of the displayed image

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
jeffp Posted - Nov 19 2024 : 12:02:47
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
2   L A T E S T    R E P L I E S    (Newest First)
jeffp Posted - Nov 19 2024 : 18:44:13
Worked! Thanks

jp
xequte Posted - Nov 19 2024 : 14:48:44
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