FakeImage

actual class FakeImage(val width: Int, val height: Int, val size: Long, val shareable: Boolean, val color: Int) : Image
expect class FakeImage(width: Int = 100, height: Int = 100, size: Long = 4L * width * height, shareable: Boolean = true, color: Int = Black) : Image

A simple Image that draws a 100x100 black square by default.

actual class FakeImage(val width: Int, val height: Int, val size: Long, val shareable: Boolean, val color: Int) : Image

Constructors

Link copied to clipboard
actual constructor(width: Int, height: Int, size: Long, shareable: Boolean, color: Int)
expect constructor(width: Int = 100, height: Int = 100, size: Long = 4L * width * height, shareable: Boolean = true, color: Int = Black)
actual constructor(width: Int, height: Int, size: Long, shareable: Boolean, color: Int)

Properties

Link copied to clipboard
actual val color: Int
expect val color: Int
actual val color: Int
Link copied to clipboard
actual open override val height: Int
expect open override val height: Int
actual open override val height: Int
Link copied to clipboard
actual open override val shareable: Boolean
expect open override val shareable: Boolean
actual open override val shareable: Boolean
Link copied to clipboard
actual open override val size: Long
expect open override val size: Long
actual open override val size: Long
Link copied to clipboard
actual open override val width: Int
expect open override val width: Int
actual open override val width: Int

Functions

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