Description: This statement draws a pie in any window.
Returns: Nothing
Usage: Steady State
Format: DrawPiePath(Left, Bottom, Right, Top, RotateAngle, Object, StartX, StartY, EndX, EndY)
Parameters:
Left {
numeric } { required } { no default
}
Any numeric
expression for the left side of the bounding box.
Bottom { numeric } { required } { no
default }
Any numeric
expression for the bottom side of the bounding box.
Right { numeric } { required } { no
default }
Any numeric
expression for the right side of the bounding box.
Top { numeric } { required } { no
default }
Any numeric
expression for the top side of the bounding box.
RotateAngle { numeric } { required }
{ no default }
Any
numeric expression for the angle of rotation of the pie, in degrees. This
represents a rotation about the center of the bounding box; if it is greater
than 0, the pie's shape will still be defined by the proportions of the bounding
box, but will no longer be within its (un-rotated) screen coordinates. Note that
although the pie itself will rotate RotateAngle degrees, neither of the endpoints for
the lines defined by StartX, StartY and
EndX, EndY will be affected (i.e. the pie will not 'line
up' with the angled lines).
Object { Object value } { required }
{ no default }
Any
expression for the object value that defines the window.
StartX { numeric } { required } { no
default }
Any numeric
expression for the X coordinate of an endpoint of a line that defines the
starting angle. The other endpoint is the center of the bounding box.
StartY { numeric } { required } { no
default }
Any numeric
expression for the Y coordinate of an endpoint of a line that defines the
starting angle. The other endpoint is the center of the bounding box.
EndX { numeric } { required } { no
default }
Any numeric
expression for the X coordinate of an endpoint of a line that defines the ending
angle. The other endpoint is the center of the bounding box.
EndY { numeric } { required } { no
default }
Any numeric
expression for the Y coordinate of an endpoint of a line that defines the ending
angle. The other endpoint is the center of the bounding box.
Comments: This statement is intended for building drawing tools. The pie is drawn in white and is exclusive OR'ed onto the screen.
Example:
DrawPiePath(10, 325, 430, 75
{ Bounding box for the pie },
90 { Rotate 90 deg. counter-clockwise },
Self() { Draw in this module's window },
550, 470 { One line of angle },
750, 300 { Other line of angle });
This draws a wedge of pie on the left side of the screen, point upward.
See Also:
DrawArcPath | DrawChordPath | DrawPath | DrawPiePath