Image

actual interface Image

Inheritors

expect interface Image

A platform-agnostic image class that exposes basic metadata about the underlying native image representation.

To draw the image it must be converted into its platform-specific graphics system representation. See DrawableImage on Android and BitmapImage on non-Android platforms.

Properties

Link copied to clipboard
actual abstract val height: Int
expect abstract val height: Int

The height of the image in pixels.

actual abstract val height: Int
Link copied to clipboard
actual abstract val shareable: Boolean
expect abstract val shareable: Boolean

True if the image can be shared between multiple Targets at the same time.

actual abstract val shareable: Boolean
Link copied to clipboard
actual abstract val size: Long
expect abstract val size: Long

The size of the image in memory in bytes.

actual abstract val size: Long
Link copied to clipboard
actual abstract val width: Int
expect abstract val width: Int

The width of the image in pixels.

actual abstract val width: Int

Functions

Link copied to clipboard
abstract fun asDrawable(resources: Resources): Drawable
Link copied to clipboard
abstract fun toBitmap(): Bitmap