fromResource

open fun fromResource(@DrawableRes resourceId: Int): Icon

Creates an icon using the resource ID of a Bitmap image.

Return

The icon that was loaded from the asset or null if failed to load.

Parameters

resourceId

The resource ID of a Bitmap image.