Gimp.Path.new_from_text_layer
Description: Reference for Gimp.Path.new_from_text_layer

### Constructor

# Gimp Pathnew_from_text_layer

since: 2.6

#### Declaration [src]

    GimpPath*
    gimp_path_new_from_text_layer (
      GimpImage* image,
      GimpLayer* layer
    )

#### Description [src]

Creates a new path object from a text layer.

Creates a new path object from a text layer. The path object needs to be added to the image using gimp_image_insert_path().

Available since: 2.6

#### Parameters

`image`

  Type: `GimpImage`

  The image.

  The data is owned by the caller of the function.

`layer`

  Type: `GimpLayer`

  The text layer.

  The data is owned by the caller of the function.

#### Return value

Type: `GimpPath`

The path of the text layer.

The data is owned by the called function.