Conversion from VC (AngleArc) to Java (drawArc)

Discussion in 'Programmer's Corner' started by zulfi100, Oct 4, 2015.

  1. zulfi100

    Thread Starter Member

    Jun 7, 2012
    320
    0
    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.
     
  2. vpoko

    Member

    Jan 5, 2012
    258
    47
    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.
     
Loading...