語言

Allocation.CreateFromString(RenderScript, String, AllocationUsage) 方法

定義

建立包含以 UTF-8 格式編碼的字串資料的配置。

[Android.Runtime.Register("createFromString", "(Landroid/renderscript/RenderScript;Ljava/lang/String;I)Landroid/renderscript/Allocation;", "")]
public static Android.Renderscripts.Allocation? CreateFromString(Android.Renderscripts.RenderScript? rs, string? str, Android.Renderscripts.AllocationUsage usage);
[<Android.Runtime.Register("createFromString", "(Landroid/renderscript/RenderScript;Ljava/lang/String;I)Landroid/renderscript/Allocation;", "")>]
static member CreateFromString : Android.Renderscripts.RenderScript * string * Android.Renderscripts.AllocationUsage -> Android.Renderscripts.Allocation

參數

rs
RenderScript

分配所屬的背景。

str
String

字串以建立配置

usage
AllocationUsage

位元欄位,指定如何利用 allocaiton。

傳回

屬性

備註

建立包含以 UTF-8 格式編碼的字串資料的配置。

的 android.renderscript.Allocation.createFromString(android.renderscript.RenderScript, java.lang.String, int)Java 檔。

此頁面的部分是根據 Android 開放原始碼專案所建立和共用的工作進行修改,並根據 Creative Commons 2.5 屬性授權中所述的詞彙使用。

適用於