ICanvasRenderingContext2D.Clip

Clip()

通过计算当前裁剪区域和路径所描述的区域的交集,使用非零绕数规则来创建一个新的裁剪区域。 Open subpaths must be implicitly closed when computing the clipping region, without affect the actual subpaths . 新的剪辑区域替换当前剪辑区域。

public void Clip()

也可以看看


Clip(CanvasFillRule)

通过使用非零缠绕数规则计算当前裁剪区域与路径描述的区域的交集来创建新的裁剪区域。 Open subpaths must be implicitly closed when computing the clipping region, without affect the actual subpaths. new clipping region replaces the current clipping region. 计算裁剪区域时必须隐式关闭,而不影响实际子路径。

public void Clip(CanvasFillRule fillRule)
范围类型描述
fillRuleCanvasFillRule确定一个点是在路径内还是路径外的算法

也可以看看


Clip(Path2D, CanvasFillRule)

通过使用非零缠绕数规则计算当前裁剪区域与路径描述的区域的交集来创建新的裁剪区域。 Open subpaths must be implicitly closed when computing the clipping region, without affect the actual subpaths. new clipping region replaces the current clipping region. 计算裁剪区域时必须隐式关闭,而不影响实际子路径。

public void Clip(Path2D path, CanvasFillRule fillRule)
范围类型描述
pathPath2D要剪辑的 Path2D 路径。
fillRuleCanvasFillRule确定点是在路径内部还是路径外部的算法。

也可以看看