语言

PathShape 构造函数

定义

重载

名称 说明
PathShape(IntPtr, JniHandleOwnership)

创建 JNI 对象的托管表示形式时使用的构造函数;由运行时调用。

PathShape(Path, Single, Single)

PathShape 构造函数。

PathShape(IntPtr, JniHandleOwnership)

创建 JNI 对象的托管表示形式时使用的构造函数;由运行时调用。

protected PathShape(IntPtr javaReference, Android.Runtime.JniHandleOwnership transfer);
new Android.Graphics.Drawables.Shapes.PathShape : nativeint * Android.Runtime.JniHandleOwnership -> Android.Graphics.Drawables.Shapes.PathShape

参数

javaReference
IntPtr

nativeint

IntPtr一个包含Java本机接口 (JNI) 对象引用。

transfer
JniHandleOwnership

指示 JniHandleOwnership如何处理 javaReference

注解

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

适用于

PathShape(Path, Single, Single)

PathShape 构造函数。

[Android.Runtime.Register(".ctor", "(Landroid/graphics/Path;FF)V", "")]
public PathShape(Android.Graphics.Path path, float stdWidth, float stdHeight);
[<Android.Runtime.Register(".ctor", "(Landroid/graphics/Path;FF)V", "")>]
new Android.Graphics.Drawables.Shapes.PathShape : Android.Graphics.Path * single * single -> Android.Graphics.Drawables.Shapes.PathShape

参数

path
Path

定义此形状的几何路径的路径

stdWidth
Single

形状的标准宽度。 使用 resize() 对宽度所做的任何更改都将导致宽度根据新宽度除以此宽度来缩放。

stdHeight
Single

形状的标准高度。 使用 resize() 对高度所做的任何更改都将根据新高度除以此高度来缩放高度。

特性

注解

PathShape 构造函数。

Java文档android.graphics.drawable.shapes.PathShape.PathShape(android.graphics.Path, float, float)。

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

适用于