Gimp.edit_named_copy_visible

function edit_named_copy_visible(image: Gimp.Image, buffer_name: String): String {
    // Gjs wrapper for gimp_edit_named_copy_visible()
}
  

Copy from the projection into a named buffer.

This procedure works like Gimp.edit_copy_visible, but additionally stores the copied buffer into a named buffer that will stay available for later pasting, regardless of any intermediate copy or cut operations.

Since 2.4

image

The image to copy from.

buffer_name

The name of the buffer to create.

Returns

The real name given to the buffer, or NULL if the copy failed. The returned value must be freed with g_free().