I have a brush property and I need to find a way to convert it to a SharpDx.Color.
Below is the brush property and below that is the code from OnRender. Right now the color is hardcoded as Yellow.
The object is to replace the hard coded color with the brush color.
Hopefully this makes sense.
[Display(Name="speed color", Order=1, GroupName="Parameters")] public Brush TapeSpeedLowColor { get; set; }
SharpDX.Color dxColor = SharpDX.Color.Yellow; SharpDX.Direct2D1.SolidColorBrush solidDXBrush = new SharpDX.Direct2D1.SolidColorBrush(RenderTarget, dxColor); RenderTarget.FillRectangle(rect2, solidDXBrush);
Comment