TransformBrush()
<< Click to Display Table of Contents >> TransformBrush() |
Scales a non-solid color brush used for rendering the chart style to properly display in NinjaTrader.
Note: This method has no impact on solid color brushes. You would only need to pass in either a linear or radial gradient brush. |
This method does not return a value.
brush |
A SharpDX.Direct2D1.Brush object representing the brush used to render |
rect |
A RectangleF structure representing the rectangle to be rendered |
protected override void OnRender(ChartControl chartControl, ChartScale chartScale, ChartBars chartBars) { TransformBrush(brush, rect); } |