NChartBrushScale Class |
This is equivalent to the following pseudo code:brushs[n] values[n - 1] ... brushs[4] values[3] brushs[3] values[2] brushs[2] values[1] brushs[1] values[0] brushs[0]
So the array of brushes should contain n elements and array of values should contain n - 1. Values should be sorted (NChartBrushScale does not sort them automatically). If they are not, it can lead to strange results. If brush index goes out of range, null is returned.if value <= values[0] return brushes[0]; if value > values[i] and value <= values[i + 1] return brush[i + 1]; if value > values[last] return brush[last]
Namespace: NChart3D_UWP
The NChartBrushScale type exposes the following members.
Name | Description | |
---|---|---|
NChartBrushScale | Initializes a new instance of the NChartBrushScale class |
Name | Description | |
---|---|---|
Brushes |
Array of brushes.
| |
GradientSharpness |
Sharpness of gradient, [0;1]. 0 means very smooth color transition, 1 means very sharp one. The default value is 0.2.
This value has effect if IsGradient flag is set to true only.
| |
IsGradient |
Flag determining if scale can return gradient colors. The default value is true.
The gradient scale assumes that the array of brushes contains instances of NChartSolidColorBrush and
linearly interpolates colors that correspond to the neighbor values.
| |
Values |
Array of values.
|
Name | Description | |
---|---|---|
BrushForValue |
Get value for brush.
| |
Close | ||
Equals | (Inherited from Object.) | |
GetHashCode | (Inherited from Object.) | |
GetType | (Inherited from Object.) | |
ToString | (Inherited from Object.) |