When I try to change the color of a line drawn in the View3D, it will use a different color. It looks like the color is rounded to one of 8 (or 16?) predefined colors. When I use the color #990000 it will use the color #FF0000 instead.
This is the source code I'm using:
Code: Select all
using System.Windows;
using System.Windows.Media;
using Arction.Wpf.BindableCharting.Series3D;
namespace WpfTestApplication
{
/// <summary>
/// Interaction logic for MainWindow.xaml
/// </summary>
public partial class MainWindow : Window
{
public MainWindow()
{
InitializeComponent();
PointLineSeries3D series = new PointLineSeries3D();
series.Points.Add(new SeriesPoint3D { X = 0.0, Y = 0.0, Z = 0.0 });
series.Points.Add(new SeriesPoint3D { X = 10.0, Y = 20.0, Z = 30.0 });
series.Points.Add(new SeriesPoint3D { X = 20.0, Y = 0.0, Z = -30.0 });
series.LineStyle.Color = Color.FromRgb(0x99, 0x00, 0x00);
this.Chart.View3D.PointLineSeries3D.Add(series);
}
}
}
As you see the line color is the #FF0000 red and not the desired #990000 darker red. How can I use the full spectrum of all possible colors for lines in the View3D?