Click or drag to resize

PathPrimitive Constructor (Int32)

Initializes a path primitive with the specified capacity.

Namespace:  AGI.Foundation.Graphics
Assembly:  AGI.Foundation.Graphics (in AGI.Foundation.Graphics.dll) Version: 24.2.419.0 (24.2.419.0)
Syntax
public PathPrimitive(
	int capacity
)

Parameters

capacity
Type: SystemInt32
Sets the initial capacity for the buffer containing positions. Setting the capacity reserves memory so the addition of points is more efficient.
Exceptions
ExceptionCondition
ArgumentOutOfRangeExceptioncapacity must be greater than or equal to 0.
Remarks

After constructing the primitive, call a method such as AddFront or AddBack to provide it with positions.

The primitive's properties are initialized to the following values:

Once the primitive is constructed, it must be added to Primitives before it will be rendered.

See Also