I have a class level variable I set in OnRender
barWidthP = chartControl.GetBarPaintWidth(chartControl.BarsArray[0]);
then I use it in a method
//================================================================================================== private void RenderEntryDot(ChartControl chartControl, ChartScale chartScale, int x, double center) { int c1; c1 = chartScale.GetYByValue(center); lineStart = new SharpDX.Vector2(x, c1); dot = new SharpDX.Direct2D1.Ellipse(lineStart, barWidthP, barWidthP); RenderTarget.FillEllipse(dot, DxBrushWhite); }
the dot shrinks when I zoom in, but it doesn't appear to be the bar width. What am I dong wrong?
Comment