Results 1 to 3 of 3

Thread: Plot Ellipse ***RESOLVED***

  1. #1

    Thread Starter
    Member
    Join Date
    Mar 2002
    Posts
    35

    Question Plot Ellipse ***RESOLVED***

    I am using the following routine to plot a circle in VB6:

    X - X coordinate of the center
    Y - Y Coordinate of the center
    R - Radius of the arc

    For i = 0 To 360
    Me.Pset (X + (R * Cos(i * Pi / 180)), Y + (R * Sin(i * Pi / 180)))
    next i

    What should I use to plot an Ellipse??

    Thank You very much

    Dalton Serkez
    Last edited by DSERKEZ; Jun 16th, 2003 at 11:40 AM.

  2. #2
    Fanatic Member alkatran's Avatar
    Join Date
    Apr 2002
    Location
    Canada
    Posts
    860
    add an X to Y ratio that lets you stretch it.
    Or, as it is in QBasic, have a starting and end angle for arc, along with a ratio for that.
    Don't pay attention to this signature, it's contradictory.

  3. #3

    Thread Starter
    Member
    Join Date
    Mar 2002
    Posts
    35

    Thumbs up Thanks ALKATRAN

    Thank you very much for your help.

    That worked!

    Regards

    DSerkez

Posting Permissions

  • You may not post new threads
  • You may not post replies
  • You may not post attachments
  • You may not edit your posts
  •  



Click Here to Expand Forum to Full Width