Constructor DxfGradientColor
- Namespace
- GeometryHelper.Dxf
- Assembly
- GeometryHelper.dll
DxfGradientColor(DxfColor, float)
Initializes a colour of a gradient, as AutoCAD's new GradientColor(color, value).
public DxfGradientColor(DxfColor color, float value)
Parameters
colorDxfColorThe colour: a true colour, or one of AutoCAD's index.
valuefloatWhere it stands along the gradient, from 0 to 1.
Exceptions
- ArgumentNullException
Thrown when the colour is null.
- ArgumentOutOfRangeException
Thrown when the value is not a finite number.