Groups | Blog | Home
all groups > dotnet drawing api > july 2004 >

dotnet drawing api : Visio like drawing


sivaraj MCP
7/27/2004 9:41:05 PM
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
Chris Taylor
7/31/2004 3:29:32 AM
Hi,

I have not looked at Visio's XML schema, however from what you describe
maybe DrawBezier is the method you are looking for.

Hope this helps

--
Chris Taylor
http://dotnetjunkies.com/weblog/chris.taylor


[quoted text, click to view]
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
[quoted text, click to view]
solution or Links to sites having information regarding this.Your help will
be greatly appretiated
[quoted text, click to view]

AddThis Social Bookmark Button