语言

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)。

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

适用于