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
 Draw Curved LIne
 New Topic  Reply to Topic
Author Previous Topic Topic Next Topic  

John

USA
94 Posts

Posted - Mar 16 2013 :  15:16:01  Show Profile  Reply
Hello

Both lines and angles can be drawn on a vector canvas via code.

Is there a mechanism to drawn an ellipse on a vector canvas via code by specifying 3 points?

TIA

John

John

USA
94 Posts

Posted - Apr 08 2013 :  21:48:53  Show Profile  Reply
I did not mistype 3, since given 3 of the 4 coordinates of a rectangle, the 4th can be derived. However, let me propose the simpler question - can ImageEn draw an ellipse in code given 4 points?

I am hopeful that this is possible given that:
a) ImageEn already has the capability to draw an ellipse as an annotation at run time.

b) The ellipse is drawn on a rectangular background that displays the 4 points representing the corners of the rectangular background.

c) The annotation background also displays the four points of the ellipse representing the intersection of the sides of the ellipse with a Cartesian axis.

Which of these two 4 point groups would be utilized in the drawing function is another question

TIA

John
Go to Top of Page

fab

1310 Posts

Posted - Apr 12 2013 :  12:04:45  Show Profile  Reply
quote:
... can ImageEn draw an ellipse in code given 4 points?


Which points of the ellipse do you have?
Go to Top of Page

John

USA
94 Posts

Posted - Apr 13 2013 :  13:00:47  Show Profile  Reply
Hello Fabrizio

I will have the four points of the ellipse representing the intersection of the sides of the ellipse with a Cartesian axis.

I envision the process as follows:

a) The user will place 2 small landmark/ellipse annotations (similar to the imageEn marker demo) on the vector canvas. These will identify one axis of the ellipse that is to be drawn.

b) A third annotation marker will be placed to identify one end of the second axis of the ellipse to be drawn.

c) The fourth point will be derived by calculating a perpendicular line from the third annotation marker to the first axis and extending it an equal distance on the opposite side of first axis.

d) I would then feed these four coordinates to ImageEn to draw the ellipse represented by the coordinates.


I appreciate your efforts and await your reply

John
Go to Top of Page
  Previous Topic Topic Next Topic  
 New Topic  Reply to Topic
Jump To: