produce

fun produce(buffer: ByteBuffer, format: <Error class: unknown class>, width: Int, height: Int): IBitmap?

Wraps a ByteBuffer into an IBitmap.

Parameters

buffer

Image buffer.

format

Pixel format.

width

Image's width.

height

Image's height.