getNativeHandle

fun getNativeHandle(): <Error class: unknown class><out <Error class: unknown class>>(source)

A Buffer that stores C pointer to underlying native handle of the image. On macOS, a pointer to NSImage instance is returned.

Notice that the returned pointer is a weak pointer to the underlying native image instead of a copy, so you must ensure that the associated nativeImage instance is kept around.