protected override void OnRender(ChartControl chartControl, ChartScale chartScale) { LinearGradientBrush linGrBrush = new LinearGradientBrush(System.Windows.Media.Color.FromArgb(255, 255, 0, 0),System.Windows.Media.Color.FromArgb(255, 0, 0, 255), new System.Windows.Point(0, 10), new System.Windows.Point(200, 10)); RenderTarget.FillRectangle(new RectangleF(10, 10, 300, 300),SharpDX.Direct2D1.Brush( linGrBrush)); }
How I can use Gradient Brush? How I can draw Rectangle with Gradient Brush?
Thank you.
Comment