DrawableImage

An Image backed by an Android Drawable.

Types

Link copied to clipboard
interface SizeProvider

Implement this on your Drawable implementation to provide a custom Image.size.

Properties

Link copied to clipboard
Link copied to clipboard
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
open override val shareable: Boolean

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

Link copied to clipboard
open override val size: Long

The size of the image in memory in bytes.

Link copied to clipboard
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
open override fun draw(canvas: Canvas)

Draw the image to a Canvas.