setBuffer

expect fun setBuffer(buf: CanvasBuffer, width: Short, height: Short, colorFormat: UByte)

Changes the buffer used by the canvas.

Parameters

buf

The buffer to use.

width

Horizontal size in pixels.

height

Vertical size in pixels.

colorFormat

The color format to use (eg LV_IMG_CF_TRUE_COLOR).

actual fun setBuffer(buf: CanvasBuffer, width: Short, height: Short, colorFormat: UByte)
actual fun setBuffer(buf: CanvasBuffer, width: Short, height: Short, colorFormat: UByte)