![]() |
---|
This is retired content. This content is outdated and is no longer being maintained. It is provided as a courtesy for individuals who are still using these technologies. This content may contain URLs that were valid when originally published, but now link to sites or pages that no longer exist. |
After determining the appropriate line-drawing function, the DrvStrokePathfunction carries out the two nested loops shown in the following pseudo code. Typically, a path falls into just one of the clipping rectangles.
for( each clip rectangle in clip list ) { for( each line segment in stroke path ) { calculate line segment clipped to current cliprect call pParms->pLine(pParms); } }
The GPE::Line function of the driver does not have to clip the line segments to the clipping rectangle, because DrvStrokePathperforms this action. In fact, the driver is really prevented from clipping, because no valid clipping information is available during the prepare phase. There might be no clipping rectangle or there might be an entire sequence of clipping rectangles for a single prepare call.
Last updated on Tuesday, July 13, 2004