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
 auto-close line when drawing

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
gundersen Posted - Jan 22 2013 : 09:01:04
Hello

In our .NET application we have a drawing function using ImageEn. Is is possible to make the line auto-close when you release the mouse? (or finger using touch-screens)

To elaborate, it should work like this: When I release the mousebutton and stop drawing, it should join the start and end of the line automatically.

I appreciate any help and advice on how this could be done.
1   L A T E S T    R E P L I E S    (Newest First)
fab Posted - Jan 25 2013 : 00:06:19
Hello,
you should set Closed = true in template object. Example:


IEObjectPolyLine template = (IEObjectPolyLine)ieViewer1.Image.Annotations.GetTemplateObject(IEObjectType.Polyline);
template.Closed = true;
ieViewer1.EnableObjectInserting=IEViewer.ObjectInserting.PolyLine;