noclass1980 Active Member Licensed User Longtime User Nov 19, 2013 #1 HI, I want to use the AS library but am struggling with the code. Could someone tell me how to draw an arc between two points with co-ordinates x1,y1 and x2,y2? Its the OvalRect as Rect that is causing me particular grief. Many thanks in advance.
HI, I want to use the AS library but am struggling with the code. Could someone tell me how to draw an arc between two points with co-ordinates x1,y1 and x2,y2? Its the OvalRect as Rect that is causing me particular grief. Many thanks in advance.
Informatix Expert Licensed User Longtime User Nov 19, 2013 #2 You have an example in the Accelerated surface demo: B4X: myRect.Initialize(100%x - 105dip, 160dip, 100%x - 5dip, 260dip) AC.DrawArc(myRect, 0, 90, True, Colors.Yellow, False, 2dip, True) You can see an arc as an oval with a clipped part. That's why a bounding rectangle is used to draw it. noclass1980 said: Could someone tell me how to draw an arc between two points with co-ordinates x1,y1 and x2,y2? Click to expand... I don't understand how you can define an arc with two points. Upvote 0
You have an example in the Accelerated surface demo: B4X: myRect.Initialize(100%x - 105dip, 160dip, 100%x - 5dip, 260dip) AC.DrawArc(myRect, 0, 90, True, Colors.Yellow, False, 2dip, True) You can see an arc as an oval with a clipped part. That's why a bounding rectangle is used to draw it. noclass1980 said: Could someone tell me how to draw an arc between two points with co-ordinates x1,y1 and x2,y2? Click to expand... I don't understand how you can define an arc with two points.