RenderScript.Create 方法
定义
重要
一些信息与预发行产品相关,相应产品在发行之前可能会进行重大修改。 对于此处提供的信息,Microsoft 不作任何明示或暗示的担保。
重载
Create(Context) |
调用 create(ctx,ContextType)。 |
Create(Context, RenderScript+ContextType) |
调用 create(ctx,ContextType)。 |
Create(Context, RenderScript+ContextType, Int32) |
调用 create(ctx,ContextType)。 |
Create(Context)
调用 create(ctx,ContextType)。
[Android.Runtime.Register("create", "(Landroid/content/Context;)Landroid/renderscript/RenderScript;", "")]
public static Android.Renderscripts.RenderScript? Create(Android.Content.Context? ctx);
[<Android.Runtime.Register("create", "(Landroid/content/Context;)Landroid/renderscript/RenderScript;", "")>]
static member Create : Android.Content.Context -> Android.Renderscripts.RenderScript
参数
- ctx
- Context
上下文。
返回
RenderScript
- 属性
注解
calls create(ctx, ContextType.NORMAL, CREATE_FLAG_NONE)
请参阅文档
适用于 . 的 android.renderscript.RenderScript.create(android.content.Context)
Java 文档
本页的某些部分是根据 Android 开放源代码项目创建和共享的工作进行的修改,并根据 Creative Commons 2.5 属性许可证中所述的术语使用。
适用于
Create(Context, RenderScript+ContextType)
调用 create(ctx,ContextType)。
[Android.Runtime.Register("create", "(Landroid/content/Context;Landroid/renderscript/RenderScript$ContextType;)Landroid/renderscript/RenderScript;", "")]
public static Android.Renderscripts.RenderScript? Create(Android.Content.Context? ctx, Android.Renderscripts.RenderScript.ContextType? ct);
[<Android.Runtime.Register("create", "(Landroid/content/Context;Landroid/renderscript/RenderScript$ContextType;)Landroid/renderscript/RenderScript;", "")>]
static member Create : Android.Content.Context * Android.Renderscripts.RenderScript.ContextType -> Android.Renderscripts.RenderScript
参数
- ctx
- Context
上下文。
要创建的上下文的类型。
返回
RenderScript
- 属性
注解
适用于 . 的 android.renderscript.RenderScript.create(android.content.Context)
Java 文档
本页的某些部分是根据 Android 开放源代码项目创建和共享的工作进行的修改,并根据 Creative Commons 2.5 属性许可证中所述的术语使用。
适用于
Create(Context, RenderScript+ContextType, Int32)
调用 create(ctx,ContextType)。
[Android.Runtime.Register("create", "(Landroid/content/Context;Landroid/renderscript/RenderScript$ContextType;I)Landroid/renderscript/RenderScript;", "")]
public static Android.Renderscripts.RenderScript? Create(Android.Content.Context? ctx, Android.Renderscripts.RenderScript.ContextType? ct, int flags);
[<Android.Runtime.Register("create", "(Landroid/content/Context;Landroid/renderscript/RenderScript$ContextType;I)Landroid/renderscript/RenderScript;", "")>]
static member Create : Android.Content.Context * Android.Renderscripts.RenderScript.ContextType * int -> Android.Renderscripts.RenderScript
参数
- ctx
- Context
上下文。
要创建的上下文的类型。
- flags
- Int32
所需的 CREATE_FLAG_* 选项的 OR
返回
RenderScript
- 属性
注解
适用于 . 的 android.renderscript.RenderScript.create(android.content.Context)
Java 文档
本页的某些部分是根据 Android 开放源代码项目创建和共享的工作进行的修改,并根据 Creative Commons 2.5 属性许可证中所述的术语使用。