語言

Icon.CreateWithFilePath(String) 方法

定義

建立一個圖示,指向由路徑指定的影像檔案。

[Android.Runtime.Register("createWithFilePath", "(Ljava/lang/String;)Landroid/graphics/drawable/Icon;", "", ApiSince=23)]
public static Android.Graphics.Drawables.Icon CreateWithFilePath(string? path);
[<Android.Runtime.Register("createWithFilePath", "(Ljava/lang/String;)Landroid/graphics/drawable/Icon;", "", ApiSince=23)>]
static member CreateWithFilePath : string -> Android.Graphics.Drawables.Icon

參數

path
String

一個包含壓縮點陣圖資料 android.graphics.BitmapFactory 的檔案路徑,該類型可解碼。

傳回

屬性

備註

建立一個圖示,指向由路徑指定的影像檔案。

Java 文件 android.graphics.drawable.Icon.createWithFilePath(java.lang.String)。

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

適用於