Gimp.Vectors.new
function new(image: Gimp.Image, name: String): Gimp.Vectors {
// Gjs wrapper for gimp_vectors_new()
}
Creates a new empty vectors object.
Creates a new empty vectors object. The vectors object needs to be added to the image using Gimp.Image.prototype.insert_vectors.
Since 2.4
- image
The image.
- name
the name of the new vector object.
- Returns
the current vector object, 0 if no vector exists in the image.