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: 25.2.423.0 (25.2.423.0)
Syntaxpublic PathPrimitive(
int capacity
)
Public Sub New (
capacity As Integer
)
public:
PathPrimitive(
int capacity
)
new :
capacity : int -> PathPrimitiveParameters
- 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| Exception | Condition |
|---|
| ArgumentOutOfRangeException | capacity 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