none
how to render xps arc into gdi plus arc RRS feed

  • Question

  • Hi All,

    iam rendering xps arc into gdi plus arc . In xps they gave start and end points of arc. andrx=X radius of entire ellipse, ry=Y radius of entire ellipse, x-axis-rotation = angle to which entire ellipse is rotated on X, large-arc-flag = flag that determines whether to draw small arc or large arc between given points, sweep-flag= flag that determines which side the arc will be drawn, x = x coordinate of the end point, y = y coordinate of the end point (start point of the arc is not part of the parameters but it is known)

    Since  GDI+ library does not offer any direct method to drawn an arc using such parameters, I want to draw this arc using different type of arc. In Gdi plus we want start angle , sweep angle , bounding rect of ellipse What I need is a algorithm/formula/methodology/way to convert above parameter into the points of the cubic beizer curve(s).

    If anyone know any resource on how to draw arc described above please help

    Thanks


    • Edited by sushma Anil Thursday, September 19, 2013 9:55 AM
    Friday, September 6, 2013 4:56 AM

Answers