Square caps

Use a square cap to extend the start, end, or C0 discontinuity points of a path geometry. The cap is added in a straight line by half the pen width. Figure 107 shows a polyline with square start and end caps. The white line shows the original line size of the line before the cap was added.


The following code defines square start and end caps that are adopted by polyBundle.

    TSquareCap* startSquareCap = new TSquareCap(); TSquareCap* endSquareCap = new TSquareCap(); polyBundle->AdoptFrameStartCap( startSquareCap ); polyBundle->AdoptFrameEndCap( endSquareCap );

[Contents] [Previous] [Next]
Click the icon to mail questions or corrections about this material to Taligent personnel.
Copyright©1995 Taligent,Inc. All rights reserved.

Generated with WebMaker