Table of Contents

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

color DxfColor

The colour: a true colour, or one of AutoCAD's index.

value float

Where 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.