Layer.from_pixbuf


Description:

[ CCode ( has_construct_function = false ) ]
[ Version ( since = "2.2" ) ]
public Layer.from_pixbuf (Image image, string name, Pixbuf pixbuf, double opacity, LayerMode mode, double progress_start, double progress_end)

Create a new layer from a gdkpixbuf.

This procedure creates a new layer from the given gdkpixbuf. The image has to be an RGB image and just like with Layer you will still need to add the layer to it.

If you pass progress_end > progress_start to this function, progress_update will be called for. You have to call progress_init beforehand then.

Parameters:

image

The RGB image to which to add the layer.

name

The layer name.

pixbuf

A GdkPixbuf.

opacity

The layer opacity.

mode

The layer combination mode.

progress_start

start of progress

progress_end

end of progress

Returns:

The newly created layer. The object belongs to libgimp and you should not free it.