IUP-Go Documentation 4.0

IupImageFromHandle

Creates an IupImage from a native image handle.

Parameters/Return

Ihandle* IupImageFromHandle(void* handle);

handle: a native image handle, such as the NATIVEIMAGE returned by IupClipboard.

Returns: handle of a new IupImage, or NULL if failed.

Notes

The native handle type is driver-dependent (GdkPixbuf*, a DIB HANDLE, QPixmap*, and so on); see NATIVEIMAGE in IupClipboard.

The pixel data is copied into the returned IupImage; the source handle is only read, so the caller keeps ownership of it.

See Also

IupImageGetHandle, IupImage, IupClipboard