GPR_$ARC_C2P GPR Calls GPR_$ARC_C2P
NAME
gpr_$arc_c2p - draws an arc.
FORMAT
gpr_$arc_2cp (center, p2, direction, option, status)
DESCRIPTION
This routine draws an arc from the current position to the point where
the arc intersects a user-defined ray.
The radius of the arc equals the distance from center to the current
position.
After the arc is drawn, the point where the arc intersects the ray
becomes the new current position.
Input Parameters
center
The center of the arc, in gpr_$position_$t format. This data type
is 4 bytes long.
p2 A coordinate position used to define a ray that passes through the
center of the arc, in gpr_$position_t format. The arc begins at the
current position and ends where it intersects the ray. This data
type is 4 bytes long.
direction
The drawing direction for the arc in gpr_$arc_direction_t format.
This data type is 2 bytes long. Possible values are gpr_$arc_ccw
(counter-clockwise) and gpr_$arc_cw (clockwise).
option
The choice of whether or not to draw an arc if the current position
is coincident with the terminal point of the arc. This parameter is
in gpr_$arc_option_t format. Possible values are gpr_$arc_draw_none
and gpr_$arc_draw_full.
Output Parameters
status
Completion status, in status_$t format.
NOTES
When you have clipping enabled, you can specify coordinates outside the
bitmap limits. With clipping disabled, specifying coordinates outside
the bitmap limits results in an error.