createWithData

@NonNull
open fun createWithData(data: @NonNull Array<Byte>, offset: Int, length: Int): @NonNull IconCompat(source)

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

Parameters

data

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

offset

Offset into data at which the bitmap data starts

length

Length of the bitmap data

See also