|
-
Sep 14th, 2000, 11:38 AM
#1
Thread Starter
Lively Member
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
-
Sep 14th, 2000, 12:05 PM
#2
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.
-
Sep 14th, 2000, 12:18 PM
#3
Frenzied Member
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
-
Sep 14th, 2000, 12:26 PM
#4
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
-
Forum Rules
|
Click Here to Expand Forum to Full Width
|