語言

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

傳回

屬性

備註

將區域設定為路徑和剪輯所描述的區域。 若所得區域非空,則回傳 true。 這會產生一個與路徑所繪製像素相同的區域(沒有抗鋸齒)。

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

本頁部分內容為基於 Open Source Project 所創建與分享的作品,並依授權條款所描述的使用進行修改。

適用於