BitmapImage

actual class BitmapImage

An Image backed by an Android Bitmap.

expect class BitmapImage : Image

A special implementation of Image that's backed by a Bitmap.

actual class BitmapImage : Image

An Image backed by a Skia Bitmap.

Properties

Link copied to clipboard
actual val bitmap: Bitmap
expect val bitmap: Bitmap
actual val bitmap: Bitmap
Link copied to clipboard
actual open val height: Int
expect open override val height: Int

The intrinsic height of the image in pixels or -1 if the image has no intrinsic height.

actual open override val height: Int

The intrinsic height of the image in pixels or -1 if the image has no intrinsic height.

Link copied to clipboard
actual open val shareable: Boolean
expect open override val shareable: Boolean

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

actual open override val shareable: Boolean

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

Link copied to clipboard
actual open val size: Long
expect open override val size: Long

The size of the image in memory in bytes.

actual open override val size: Long

The size of the image in memory in bytes.

Link copied to clipboard
actual open val width: Int
expect open override val width: Int

The intrinsic width of the image in pixels or -1 if the image has no intrinsic width.

actual open override val width: Int

The intrinsic width of the image in pixels or -1 if the image has no intrinsic width.

Functions

Link copied to clipboard
expect open override fun draw(canvas: Canvas)

Draw the image to a Canvas.