createFromBitmap

fun createFromBitmap(    buffer: <Error class: unknown class><out <Error class: unknown class>>,     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.