DrawArc Function

Microchip Graphics Library

Microchip Graphics Library
DrawArc Function
C
WORD DrawArc(
    SHORT cx, 
    SHORT cy, 
    SHORT r1, 
    SHORT r2, 
    SHORT startAngle, 
    SHORT endAngle
);
Overview

This renders an arc with from startAngle to endAngle with the thickness of r2-r1. The function returns 1 when the arc is rendered successfuly and returns a 0 when it is not yet finished. The next call to the function will continue the rendering.

Input Parameters
Input Parameters 
Description 
SHORT cx 
the location of the center of the arc in the x direction. 
SHORT cy 
the location of the center of the arc in the y direction. 
SHORT r1 
the smaller radius of the arc. 
SHORT r2 
the larger radius of the arc. 
SHORT startAngle 
start angle of the arc. 
SHORT endAngle 
end angle of the arc. 
Returns

Returns 1 if the rendering is done, 0 if not yet done.

Preconditions

none

Side Effects

none

Microchip Graphics Library Version 3.06.02 - October 15, 2012
Copyright © 2012 Microchip Technology, Inc.  All rights reserved