Sub DrawCircleArc(cx As Float, cy As Float, Radius As Float, StartAngle As Float, SweepAngle As Float, col As Int, Filled As Boolean, StrokeWidth As Float, UseCenter As Boolean)
Dim r As ABRectF
r.Initialize(cx - Radius, cy - Radius, cx + Radius, cy + Radius)
Dim paint As ABPaint
paint.Initialize
If Filled = True Then
paint.SetStyle(paint.Style_FILL)
Else
paint.SetStyle(paint.Style_STROKE)
End If
paint.SetColor(col)
paint.SetStrokeWidth(StrokeWidth)
ExtDrawing.drawArc(cvsMain, r, StartAngle, SweepAngle, UseCenter, paint)
End Sub
Sub button1_click
DrawCircleArc(300, 600, 320, 25, 20, Colors.Transparent , False, 6, True)
End Sub
Sub button2_click
DrawCircleArc(300, 600, 320, 25, 20, Colors.Green, False, 6, True)
End Sub
question
Not transparent.
Dim r As ABRectF
r.Initialize(cx - Radius, cy - Radius, cx + Radius, cy + Radius)
Dim paint As ABPaint
paint.Initialize
If Filled = True Then
paint.SetStyle(paint.Style_FILL)
Else
paint.SetStyle(paint.Style_STROKE)
End If
paint.SetColor(col)
paint.SetStrokeWidth(StrokeWidth)
ExtDrawing.drawArc(cvsMain, r, StartAngle, SweepAngle, UseCenter, paint)
End Sub
Sub button1_click
DrawCircleArc(300, 600, 320, 25, 20, Colors.Transparent , False, 6, True)
End Sub
Sub button2_click
DrawCircleArc(300, 600, 320, 25, 20, Colors.Green, False, 6, True)
End Sub
question
Not transparent.