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
 auto-close line when drawing
 New Topic  Reply to Topic
Author Previous Topic Topic Next Topic  

gundersen

Denmark
4 Posts

Posted - Jan 22 2013 :  09:01:04  Show Profile  Reply
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.

fab

1310 Posts

Posted - Jan 25 2013 :  00:06:19  Show Profile  Reply
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;
Go to Top of Page
  Previous Topic Topic Next Topic  
 New Topic  Reply to Topic
Jump To: