AggPas - Anti-Grain Geomertry for Object Pascal

TAgg2D.ResetPath

Description

Removes all elements from internal path making it empty and changes the position of Current Point to 0:0.

Current Point is an invisible position on the path indicating where the last path command stopped.

Remarks

A path consists of straight lines, curves and arcs comprising individual shapes also called subpaths. Subpaths can be opened or closed. Path can hold any number of path elements. They are all rendered together with the DrawPath method.

In fact, on the most basic level, everything is a path. Even a shape like the circle is in the end a composition of path commands telling the rasterizer where to move and draw. Also more complex shapes like font glyphs are rendered as paths. For example, the glyph for letter "o" consists of two subpaths, the outer and the inner ring. When rendering this "o" path, rasterizer's internal rules make it appear as a ring with hole inside (in one pass).