Path.from_text_layer


Description:

[ CCode ( has_construct_function = false ) ]
[ Version ( since = "2.6" ) ]
public Path.from_text_layer (Image image, Layer layer)

Create a new path object from a text layer.

This procedure creates a new path object from a text layer.

The new path still needs to be added to the image as this is not automatic. Add the new path with the [method@Image.insert_path] method.

Parameters:

image

The image.

layer

The text layer.

Returns:

The path of the text layer.