Quantcast
Channel: .NET Framework Class Libraries forum
Viewing all articles
Browse latest Browse all 8156

how to render xps arc into gdi plus arc

$
0
0

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



Viewing all articles
Browse latest Browse all 8156


<script src="https://jsc.adskeeper.com/r/s/rssing.com.1596347.js" async> </script>