WallpaperColors.FromBitmap(Bitmap) Method

Definition

Constructs WallpaperColors from a bitmap.

[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

Parameters

bitmap
Bitmap

Source where to extract from.

Returns

Attributes

Remarks

Constructs WallpaperColors from a bitmap.

Main colors will be extracted from the bitmap.

Java documentation for android.app.WallpaperColors.fromBitmap(android.graphics.Bitmap).

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