Share via


WallpaperColors.FromDrawable(Drawable) Method

Definition

Constructs WallpaperColors from a drawable.

[Android.Runtime.Register("fromDrawable", "(Landroid/graphics/drawable/Drawable;)Landroid/app/WallpaperColors;", "", ApiSince=27)]
public static Android.App.WallpaperColors? FromDrawable (Android.Graphics.Drawables.Drawable? drawable);
[<Android.Runtime.Register("fromDrawable", "(Landroid/graphics/drawable/Drawable;)Landroid/app/WallpaperColors;", "", ApiSince=27)>]
static member FromDrawable : Android.Graphics.Drawables.Drawable -> Android.App.WallpaperColors

Parameters

drawable
Drawable

Source where to extract from.

Returns

Attributes

Remarks

Constructs WallpaperColors from a drawable.

Main colors will be extracted from the drawable.

Java documentation for android.app.WallpaperColors.fromDrawable(android.graphics.drawable.Drawable).

Portions of this page are modifications based on work created and shared by the Android Open Source Project and used according to terms described in the Creative Commons 2.5 Attribution License.

Applies to