[ CCode ( has_construct_function = false ) ]
public Layer.from_drawable (Drawable drawable, Image dest_image)
Create a new layer by copying an existing drawable.
This procedure creates a new layer as a copy of the specified drawable.
The new layer still needs to be added to the image as this is not automatic. Add the new layer with the [method@Image.insert_layer] method.
Other attributes such as layer mask and offsets should be set with explicit procedure calls.
| drawable |
The source drawable from where the new layer is copied. |
| dest_image |
The destination image to which to add the layer. |
|
The newly copied layer. |