语言

Region.SetPath(Path, Region) 方法

定义

将区域设置为路径和剪辑描述的区域。

[Android.Runtime.Register("setPath", "(Landroid/graphics/Path;Landroid/graphics/Region;)Z", "GetSetPath_Landroid_graphics_Path_Landroid_graphics_Region_Handler")]
public virtual bool SetPath(Android.Graphics.Path path, Android.Graphics.Region clip);
[<Android.Runtime.Register("setPath", "(Landroid/graphics/Path;Landroid/graphics/Region;)Z", "GetSetPath_Landroid_graphics_Path_Landroid_graphics_Region_Handler")>]
abstract member SetPath : Android.Graphics.Path * Android.Graphics.Region -> bool
override this.SetPath : Android.Graphics.Path * Android.Graphics.Region -> bool

参数

path
Path

其填充区域转换为整数区域的路径。

clip
Region

限制生成的覆盖范围的剪辑区域。

返回

如果生成的区域为 nonempty,则为 .

特性

注解

将区域设置为路径和剪辑描述的区域。 如果生成的区域不为空,则返回 true。 这会生成与路径绘制的像素相同的区域(无抗锯齿)。

Java文档android.graphics.Region.setPath(android.graphics.Path, android.graphics.Region)。

本页的某些部分是根据 创建和共享的工作进行的修改,并根据 许可证中所述的条款使用。

适用于