语言

WallpaperColors.FromBitmap(Bitmap) 方法

定义

WallpaperColors从位图构造。

[Android.Runtime.Register("fromBitmap", "(Landroid/graphics/Bitmap;)Landroid/app/WallpaperColors;", "", ApiSince=27)]
public static Android.App.WallpaperColors? FromBitmap(Android.Graphics.Bitmap bitmap);
[<Android.Runtime.Register("fromBitmap", "(Landroid/graphics/Bitmap;)Landroid/app/WallpaperColors;", "", ApiSince=27)>]
static member FromBitmap : Android.Graphics.Bitmap -> Android.App.WallpaperColors

参数

bitmap
Bitmap

要从中提取位置的源。

返回

特性

注解

从位图构造 WallpaperColors。 主颜色将从位图中提取。

Android 参考。android.app.WallpaperColors.fromBitmap

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

适用于