ILNumerics - Technical Application Development
Assembly: ILNumerics.Toolboxes.Drawing2 (in ILNumerics.Toolboxes.Drawing2.dll) Version: 5.5.0.0 (5.5.7503.3146)
Constructor defines FillArea on the basis of a positions array
[ILNumerics Drawing2 Toolbox]
Namespace: ILNumerics.Drawing.Plotting
Assembly: ILNumerics.Toolboxes.Drawing2 (in ILNumerics.Toolboxes.Drawing2.dll) Version: 5.5.0.0 (5.5.7503.3146)
Syntax
public FillArea( InArray<float> positions, float baseline = 0f, int lineWidth = 1, Nullable<Color> lineColor = null, Nullable<Color> fillColor = null, Object tag = null )
Parameters
- positions
- Type: ILNumericsInArraySingle
(2 x n) matrix, containing coordinates of arbitrary two dimensional curve - baseline (Optional)
- Type: SystemSingle
[optional] line that defines upper or lower limit of fill area depending on its value, default: 0 - lineWidth (Optional)
- Type: SystemInt32
[optional] line width, default: 1px - lineColor (Optional)
- Type: SystemNullableColor
[optional] line color, default: auto - fillColor (Optional)
- Type: SystemNullableColor
[optional] fill color, default: auto - tag (Optional)
- Type: SystemObject
[optional] identifying the FillArea object in the scene graph
Exceptions
Exception | Condition |
---|---|
ArgumentException | If input argument positions is not a (2 x n) array. |
ArgumentException | If input argument positions has more than two dimensions. |
Remarks
[ILNumerics Drawing2 Toolbox]
Examples
Creation of an FillArea object
private void ilPanel1_Load(object sender, EventArgs e) { // create data Array<float> positions = tosingle(linspace(0, 2 * pi, 100)); positions[1,full] = sin(positions[0,full]); // create plot cube var myPlotCube = ilPanel1.Scene.Add(new PlotCube()); // create an FillArea object var myFillArea = myPlotCube.Add(new FillArea(positions, baseline: -1, lineWidth: 2,lineColor: Color.DarkGreen, fillColor: Color.SeaGreen)); }
See Also