createFromBitmap

fun createFromBitmap(buffer: ERROR CLASS: Symbol not found for Buffer<*>, options: CreateFromBitmapOptions): NativeImage(source)

Creates a new NativeImage instance from buffer that contains the raw bitmap pixel data returned by toBitmap(). The specific format is platform-dependent.