Results 1 to 4 of 4

Thread: oval shape

  1. #1

    Thread Starter
    Lively Member
    Join Date
    Feb 1999
    Location
    France
    Posts
    90
    I have the code to make a circle form

    Form1.Circle (3000, 3800), 400

    and i know you can make an oval shape in the form.
    I was just wondering if you can make an oval shape with code like the circle. Any help would be most appreciated

    Thanks


  2. #2
    Guest
    Try this:
    Code:
    Form1.Circle (3000, 3800), 400, , , , 2
    This will make the vertical axis of the ellipse 2 times bigger than the horizontal axis of the ellipse.

  3. #3
    Frenzied Member
    Join Date
    Mar 2000
    Posts
    1,089
    there are more options for the Circle Method than just the Centre and Radius.

    the full Call for the Circle Method is
    Code:
    Circle (X,Y), Radius, Colour, Start, Finish, Aspect
    X, Y and Radius you've already used
    [list][*]Colour is a long integer representing the colour of the circle, the default is vbBlack.[*]Start and Finish are the points on the circle the line starts and Finishes at 0 is the rightmost point, 2*pi is right the way around the circle at the rightmost point, so if start = pi/2 and Finish = 3*pi/2 onlt the right half of the circle is drawn.

    Aspect is the way of making the circle an ellipse, the value of aspect is the height of the ellipse divided by the width. the value for the radius is the greater of the height and width axes.

    so
    Code:
    Circle (1000,1000), 500, , , , 2
    Draws an ellipse of height 500 and width 250
    and
    Code:
    Circle (1000,1000), 500, , , , 2
    Draws an ellipse of height 250 and width 500



  4. #4
    Guest
    Sam:
    The default is not vbBlack, it's the ForeColor property of the device context (in this case, Form1.hDC).

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