System::Drawing::Graphics::SetClip 方法

Graphics::SetClip(const SharedPtr<Drawing2D::GraphicsPath>&, Drawing2D::CombineMode) method

将当前 Graphics 对象表示的绘图表面的剪裁区域设置为指定操作的结果,该操作将当前剪裁区域与由图形路径指定的区域合并。

void System::Drawing::Graphics::SetClip(const SharedPtr<Drawing2D::GraphicsPath> &path, Drawing2D::CombineMode combineMode=Drawing2D::CombineMode::Replace)
参数类型描述
路径const SharedPtr<Drawing2D::GraphicsPath>&指定要合并的区域
combineModeDrawing2D::CombineMode指定组合操作

另见

Graphics::SetClip(const SharedPtr<Graphics>&, Drawing2D::CombineMode) method

未实现。

void System::Drawing::Graphics::SetClip(const SharedPtr<Graphics> &graphics, Drawing2D::CombineMode combineMode=Drawing2D::CombineMode::Replace)

另见

Graphics::SetClip(const SharedPtr<Region>&, Drawing2D::CombineMode) method

将当前 Graphics 对象表示的绘图表面的裁剪区域设置为指定操作的结果,该操作将当前裁剪区域与指定区域合并。

void System::Drawing::Graphics::SetClip(const SharedPtr<Region> &region, Drawing2D::CombineMode combineMode=Drawing2D::CombineMode::Replace)
参数类型描述
区域const SharedPtr<Region>&指定要合并的区域
combineModeDrawing2D::CombineMode指定组合操作

另见

Graphics::SetClip(Rectangle, Drawing2D::CombineMode) method

将当前 Graphics 对象表示的绘图表面的裁剪区域设置为指定操作的结果,该操作将当前裁剪区域与指定区域合并。

void System::Drawing::Graphics::SetClip(Rectangle rect, Drawing2D::CombineMode combineMode=Drawing2D::CombineMode::Replace)
参数类型描述
rect矩形指定要合并的区域
combineModeDrawing2D::CombineMode指定组合操作

另见

Graphics::SetClip(RectangleF, Drawing2D::CombineMode) method

将当前 Graphics 对象表示的绘图表面的裁剪区域设置为指定操作的结果,该操作将当前裁剪区域与指定区域合并。

void System::Drawing::Graphics::SetClip(RectangleF rect, Drawing2D::CombineMode combineMode=Drawing2D::CombineMode::Replace)
参数类型描述
rectRectangleF指定要合并的区域
combineModeDrawing2D::CombineMode指定组合操作

另见