TransformBrush()

<< Click to Display Table of Contents >>

Navigation:  NinjaScript > Language Reference > Chart Style >

TransformBrush()

Previous page Return to chapter overview Next page

Definition

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.

 

Method Return Value

This method does not return a value.

 

Syntax
TransformBrush(SharpDX.Direct2D1.Brush brush, RectangleF rect)

 

 

Method Parameters

brush

A SharpDX.Direct2D1.Brush object representing the brush used to render

rect

A RectangleF structure representing the rectangle to be rendered

 

 

Examples

ns

protected override void OnRender(ChartControl chartControl, ChartScale chartScale, ChartBars chartBars)

{

  TransformBrush(brush, rect);

}