And as a follow up get the source code for Batik.  I think it uses a Java 
version of the formulas to do the Java DrawArc command so it might be exactly 
what you are looking for.

--- In [email protected], "bruce" <bruce.rind...@...> wrote:
>
> For #2 (and maybe #3) see:
> http://www.w3.org/TR/SVG/implnote.html#ArcImplementationNotes
> 
> 
> --- In [email protected], "tushar0711" <tctrivedi@> wrote:
> >
> > 
> > Hello All,
> > 
> > I'm developing basic SVG Viewer using .Net GDI+. I need to draw an
> > Elliptical Arc using SVG Path element.
> > 
> > SVG <path> element has "A"/"a" command for elliptical arc which has
> > following parameters
> > 
> > x,y = End point of the curve
> > rx,ry = X Radius and Y Radius of the entire ellipse
> > x-axis-rotation = rotation applied to entire ellipse
> > large-arc-flag = flag that determines whether to draw large arc or small
> > arc between given points
> > sweep-flag = flag that determines positive angle direction or negative
> > angle direction
> > 
> > starting point of the curve is known
> > 
> > Now, on the drawing/rendering side I have couple of options:
> > 
> > 1. Drawing elliptical arc using one or more cubic bezier curves
> > 
> > 2. Drawing elliptical arc using .Net DrawArc() method
> > 
> > 3. Drawing elliptical arc by joining  points on the curve using line
> > 
> > For No. 1 what need is set of 4 points for each Cubic Bezier curve. If
> > anyone know any methodology/algorithm/formula or any other resource to
> > derived points of the bezier curve from the above given parameters
> > please share.
> > 
> > For No. 2 what I need to know is rectangle that is equivalent to
> > bounding box of the entire ellipse, start angle and sweep angle. In
> > order to know the rectangle I need to know the center of the ellipse. If
> > anyone know any method/algorithm/formula to determine center of the
> > ellipse and start angle and sweep angle from above given SVG parameters
> > please share.
> > 
> > For No. 3 what I need is simply set of points joining which by line I
> > can draw a curve.
> > 
> > I'm not from the mathametics background, please share your knowledge on
> > this or direct me to any web resource where I can read relevant
> > information and formulas.
> > 
> > Since this group is very old, this topic may be already discussed. If
> > so, please let me know message number(s).
> > 
> > Thanks all
> > 
> > Tushar
> > 
> > 
> > 
> > [Non-text portions of this message have been removed]
> >
>




------------------------------------

-----
To unsubscribe send a message to: [email protected]
-or-
visit http://groups.yahoo.com/group/svg-developers and click "edit my 
membership"
----Yahoo! Groups Links

<*> To visit your group on the web, go to:
    http://groups.yahoo.com/group/svg-developers/

<*> Your email settings:
    Individual Email | Traditional

<*> To change settings online go to:
    http://groups.yahoo.com/group/svg-developers/join
    (Yahoo! ID required)

<*> To change settings via email:
    [email protected] 
    [email protected]

<*> To unsubscribe from this group, send an email to:
    [email protected]

<*> Your use of Yahoo! Groups is subject to:
    http://docs.yahoo.com/info/terms/

Reply via email to