Function GraPathOutline() Foundation

Outlines a defined graphic path.

Syntax
GraPathOutline( [<oPS>] ) --> lSuccess
Parameters
<oPS>
The argument <oPS> specifies the presentation space in which the graphic path is outlined. If the current window is an XbpCrt window, <oPS> is optional. If it is NIL, the return value of SetAppWindow():presSpace() is used. In all other cases <oPS> is not optional. It must be created using XbpPresSpace():new() or a "Micro PS" must be requested from an Xbase Part using the method :lockPS(). After graphic output the Micro PS must be released with :unlockPS().
Return

The return value of GraPathOutline() is .T. (true) when the path was outlined, otherwise it is .F. (false). If the return value equals .F., the cause of error can be determined using GraError().

Description

The function GraPathOutline() outlines a graphic path defined by GraPathBegin() / GraPathEnd(). After the call to GraPathOutline(), the definition of the path is discarded.

Examples
Outlining a graphic path
// In the example an arc is defined as a path which is outlined. 

PROCEDURE Main 

   SetColor("N/W")                  // fill window pale gray 
   CLS 

   GraPathBegin()                   // define path 
     GraPos( NIL, {300,100} ) 
     GraArc( NIL, {300,200}, 30, , 120 ) 
   GraPathEnd() 

   GraPathOutLine()                 // outline path 

   Inkey(0)                         // wait for key press 
RETURN 
Feedback

If you see anything in the documentation that is not correct, does not match your experience with the particular feature or requires further clarification, please use this form to report a documentation issue.