Skip to content

ElectronNativeImage.getNativeHandle method

ElectronNativeImage › getNativeHandle

Unofficial

Returns a buffer that stores the C pointer to the underlying native handle of the image. On macOS, a pointer to an NSImage instance is returned. The returned pointer is a weak pointer to the underlying native image, so the associated nativeImage instance must be kept around. Only available on macOS.

Signature:

getNativeHandle(): Buffer

Returns: BufferThe native handle of the image.