Icon.CreateWithData(Byte[], Int32, Int32) Method

Definition

Create an Icon pointing to a compressed bitmap stored in a byte array.

[Android.Runtime.Register("createWithData", "([BII)Landroid/graphics/drawable/Icon;", "", ApiSince=23)]
public static Android.Graphics.Drawables.Icon CreateWithData (byte[]? data, int offset, int length);
[<Android.Runtime.Register("createWithData", "([BII)Landroid/graphics/drawable/Icon;", "", ApiSince=23)>]
static member CreateWithData : byte[] * int * int -> Android.Graphics.Drawables.Icon

Parameters

data
Byte[]

Byte array storing compressed bitmap data of a type that android.graphics.BitmapFactory can decode (see android.graphics.Bitmap.CompressFormat).

offset
Int32

Offset into data at which the bitmap data starts

length
Int32

Length of the bitmap data

Returns

Attributes

Remarks

Create an Icon pointing to a compressed bitmap stored in a byte array.

Java documentation for android.graphics.drawable.Icon.createWithData(byte[], int, int).

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