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
 Drawing Annotations on a TImageEnVect
 New Topic  Reply to Topic
Author Previous Topic Topic Next Topic  

john_siggy@yahoo.com

USA
167 Posts

Posted - Jul 04 2018 :  11:11:51  Show Profile  Reply
I have a simple editor that lets the user draw rectangle annotations on an ImageEnVect. I want a rectangle to be drawn when the user presses the left mouse button down and moves the mouse. If the mouse is pressed down over a prior annotation, the annotation will be in move mode. That is you see the grab handles when you mouse down on an existing annotation. If you press down on the mouse where there is no existing annotation(s) below, a rectangle annotation is started.

The demo: ...\Demos\ImageEditing\Layers_AllTypes\Layers.exe behaves this way but uses an ImageEnView and adds a new layer for each annotation.




Thanks in Advance.

xequte

39053 Posts

Posted - Jul 04 2018 :  22:10:43  Show Profile  Reply
Hi John

Sorry, just to clarify, do you have a specific reason for using a TImageEnvect instead of layers?

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

john_siggy@yahoo.com

USA
167 Posts

Posted - Jul 05 2018 :  14:19:34  Show Profile  Reply
I am using an ImageEnVect because it allows for a background image which can change rapidly behind the annotations that do not change. User can move the annotations around but not the background image.

Not sure how to implement this with layers ???

Go to Top of Page

xequte

39053 Posts

Posted - Jul 05 2018 :  15:32:46  Show Profile  Reply
That requirement would be no better with TImageEnVect than TImageEnView, because in both controls the background is layer 0. By default, layer 0 cannot be moved.

Try creating a solution based on Demos\ImageEditing\Layers_AllTypes\Layers.dpr, and let us know if you hit any roadblocks.



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