Allocation.CreateFromString(RenderScript, String, AllocationUsage) 方法
定義
重要
部分資訊涉及發行前產品,在發行之前可能會有大幅修改。 Microsoft 對此處提供的資訊,不做任何明確或隱含的瑕疵擔保。
建立包含以 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 開放原始碼專案所建立和共用的工作進行修改,並根據 Creative Commons 2.5 屬性授權中所述的詞彙使用。