Conversion from VC (AngleArc) to Java (drawArc)

Thread Starter

zulfi100

Joined Jun 7, 2012
656
Hi,

I want to convert from VC to JAVA. I have AngleArc in VC ( 5 arguments) & drawArc in Java(6 arguments). Their syntax is given below:


drawArc(int xTopLeft, int yTopLeft, int width, int height, int startAngle, int arcAngle);

BOOL AngleArc( int x, int y, int nRadius, float fStartAngle, float fSweepAngle);


Instead of width & height VC uses only radius. Some body please guide me how to do this conversion.


Zulfi.
 

vpoko

Joined Jan 5, 2012
267
The functions aren't equivalent. The one that lets you specify width and height separately allows you to take an arc out of an ellipse, the other only lets you take an arc out of a circle.
 
Top