Visio Like Drawing

  • Thread starter Thread starter Guest
  • Start date Start date
G

Guest

Hi all
You might have heard that Microsoft has published XML Schema for Visio Shapes.I am developing a small app which read from this XML and draw shapes using GDI+.But i am stuck with ellipitical arc .The XML Containes Following data
1. two end points of the arc - ( X1,Y1),(X2,Y2)
2. one control point - (Xc,Yc)
(The control point is best located
about halfway between the beginning
and ending vertices of the arc. Otherwise,
the arc may grow to an extreme size in
order to pass through the control point,
with unpredictable results.)
3. arc's major axis to minor axis ratio
4. arc's major axis' angle with the X axis
But DrawEllipse of GDI+ has different input parameters .Does anybody has a solution or Links to sites having information regarding this.Your help will be greatly appretiated
Thank u
Sivaraj



Expand AllCollapse All
 
Hi,

I guess the direction to look towards is splines.

--
Sincerely,
Dmitriy Lapshin [C# / .NET MVP]
Bring the power of unit testing to the VS .NET IDE today!
http://www.x-unity.net/teststudio.aspx

Sivaraj R.P said:
Hi all
You might have heard that Microsoft has published XML Schema for
Visio Shapes.I am developing a small app which read from this XML and draw
shapes using GDI+.But i am stuck with ellipitical arc .The XML Containes
Following data
1. two end points of the arc - ( X1,Y1),(X2,Y2)
2. one control point - (Xc,Yc)
(The control point is best located
about halfway between the beginning
and ending vertices of the arc. Otherwise,
the arc may grow to an extreme size in
order to pass through the control point,
with unpredictable results.)
3. arc's major axis to minor axis ratio
4. arc's major axis' angle with the X axis
But DrawEllipse of GDI+ has different input parameters .Does anybody has a
solution or Links to sites having information regarding this.Your help will
be greatly appretiated
 

Ask a Question

Want to reply to this thread or ask your own question?

You'll need to choose a username for the site, which only take a couple of moments. After that, you can post your question and our members will help you out.

Ask a Question

Back
Top