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
 How to create an arc between two lines?
 New Topic  Reply to Topic
Author Previous Topic Topic Next Topic  

klinikaxp

Poland
11 Posts

Posted - Jan 25 2020 :  16:41:47  Show Profile  Reply
The user draws to lines, which are crossed. When he point the end of second section/line, I have to draw an arc, and to sho the angle between them.

Now I draw an angle with lines, which overlap the user lines, but it does not look well and is difficult to modify, when user moves section ends.

I would like just to draw arc, but I do not know, how to add an arc (without lines) as a layer.

xequte

38222 Posts

Posted - Jan 26 2020 :  21:52:27  Show Profile  Reply
Hi

Unfortunately arc's are not yet supported, but they are on the to-do list.

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

klinikaxp

Poland
11 Posts

Posted - Jan 27 2020 :  04:46:48  Show Profile  Reply
Thank you for response. Is there any way to draw it manually? For example I add empty Layer and then I DrawArc in OnDrawLayer event or something like this?
Go to Top of Page

xequte

38222 Posts

Posted - Jan 27 2020 :  13:53:47  Show Profile  Reply
Hi

Yes, you could do it that way. Please see the custom draw demo:

Demos\LayerEditing\Layers_CustomDraw\LayersDraw.dpr

You can draw an arc using a TIECanvas with:

procedure TIECanvas.Arc(X1, Y1, X2, Y2, X3, Y3, X4, Y4: Integer);

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