5.2. Propriétés d’un chemin

Les chemins, comme les calques et les canaux, font partie de l’image. Quand vous enregistrez une image au format natif de GIMP XCF, les chemins sont sauvegardés en même temps. La liste des chemins peut être visualisée et manipulée grâce au Dialogue des chemins. Si vous voulez déplacer un chemin d’une image dans l’autre, vous pouvez faire un copier-coller grâce au menu local ouvert par un clic droit dans le Dialogue des chemins, ou un cliquer-glisser de l’icône du chemin dans le Dialogue des chemins jusque dans l’image de destination.

Les chemins de GIMP appartiennent à un type de courbe mathématique appelé « Courbes de Bézier ». Les points d’ancrage sont les points par où passe le chemin et les poignées définissent la direction du chemin à l’entrée et à la sortie d’un point d’ancrage. Chaque point d’ancrage a deux poignées qui lui sont attachées.

Paths can be very complex. If you create them by hand using the Paths tool, they probably won't contain more than a few dozen anchor points and usually a less than that. However, if you create them by transforming a selection into a path, or by transforming text into a path, the result can easily contain hundreds or even thousands of anchor points.

Un chemin peut comporter plusieurs composants. Un composant est une partie d’un chemin dont les points d’ancrages sont unis les uns aux autres par des segments. La possibilité d’avoir plusieurs composants vous permet de les convertir en sélections indépendantes.

Chaque composant d’un chemin peut être ouvert ou fermé : « fermé » signifie que le dernier point d’ancrage est relié au premier. Si vous transformez un chemin en sélection, les composants ouverts seront automatiquement fermés en reliant le dernier point d’ancrage au premier par une ligne droite.

Path segments can be either straight or curved. A path is called « polygonal » if all of its segments are straight. A new path segment is always created straight; the handles for the anchor points are directly on top of the anchor points, yielding handles of zero length, which produces straight-line segments. Drag a handle away from an anchor point to cause a segment to curve.

One nice thing about paths is that they use very few resources, especially in comparison with images. Representing a path in RAM requires storing only the coordinates of its anchors and handles. Therefore, it is possible to have literally hundreds of paths in an image without causing any significant stress to your system. Even a path with thousands of segments consumes minimal resources in comparison to a typical layer or channel.

Paths can be created and manipulated using the Paths tool.