9、通过SelectClipPath()函数可以把当前的路径程作为一个剪切区域和另外一个已经存在的剪切区域(clipping region)作相应的操作(Selects the current path as a clipping region for the device context, combining the new region with any existing clipping region by using the specified mode. The device context identified must contain a closed path.)。 一般如果我们在作图的时候想在整个图形的某个部分和其他的部分有所区别,我们就可以把这部分图形放到一个路径程当中,然后利用 SelectClipPath()函数来设置一个它们互操作的模式,来达到需要的效果。路径程以函数BeginPath()开始,以EndPath结束。