fromResource

Constructs an image source with an Android resource identifier. The resource must be accessible from the Android Context associated with the WorldWindow.

Return

the new image source

Parameters

id

the resource identifier, as generated by the aapt tool


actual fun fromResource(imageResource: ImageResource): ImageSource

Constructs an image source with a multi-platform resource identifier.

Return

the new image source

Parameters

imageResource

the multi-platform resource identifier

expect fun fromResource(imageResource: ImageResource): ImageSource
actual fun fromResource(imageResource: ImageResource): ImageSource
actual fun fromResource(imageResource: ImageResource): ImageSource

Constructs an image source with a multi-platform resource identifier.

Return

the new image source

Parameters

imageResource

the multi-platform resource identifier

actual fun fromResource(imageResource: ImageResource): ImageSource

Constructs an image source with a multi-platform resource identifier.

Return

the new image source

Parameters

imageResource

the multi-platform resource identifier