PHP Developers Network

A community of PHP developers offering assistance, advice, discussion, and friendship.
 
Loading
It is currently Mon Sep 23, 2019 10:26 am

All times are UTC - 5 hours




Post new topic Reply to topic  [ 1 post ] 
Author Message
 Post subject: SVG and elliptical arcs
PostPosted: Wed Oct 06, 2010 6:27 am 
Offline
Forum Commoner

Joined: Wed Jun 16, 2010 6:00 am
Posts: 32
I'm converting a Windows program to be a web application and am using SVG for the graphics. Has anyone done something like this and can point me at the correct logic to convert the parameters which the Windows GDI "arc" routine expects (the bounding box for the rectangle the ellipse would fit into, plus start and end coordinates) into equivalents for an SVG elliptical curve path?

All suggestions gratefully received...the start and end points are obvious, the radii can be calculated easily from the dimensions of the rectangle...but the sweep and large-arc flags are going to depend on the location of the rectangle and I'm struggling...


Top
 Profile  
 
Display posts from previous:  Sort by  
Post new topic Reply to topic  [ 1 post ] 

All times are UTC - 5 hours


Who is online

Users browsing this forum: No registered users and 1 guest


You cannot post new topics in this forum
You cannot reply to topics in this forum
You cannot edit your posts in this forum
You cannot delete your posts in this forum
You cannot post attachments in this forum

Jump to:  
Powered by phpBB® Forum Software © phpBB Group