Android Question Accelerated Surface Library help

noclass1980

Active Member
Licensed User
Longtime User
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.
 
You have an example in the Accelerated surface demo:
Code: Copy
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.

Could someone tell me how to draw an arc between two points with co-ordinates x1,y1 and x2,y2?
I don't understand how you can define an arc with two points.
 
Upvote 0
Back
Top