produce

fun produce(buffer: ByteBuffer, format: EImagePixelFormat, 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.