Hello,
I noticed a pixel error in the way the bar pen is drawn. The following picture shows the case where I have two bars, one white and one gray. The white is behind the gray one, and it has a 1px black pen, whereas the gray doesn't have a pen.
As you can see, the line is drawn inside the bar on the left-hand side, and outside on the right. It is only a single pixel that is affected by this, if you set the pen width to 10 px, there will still be a single pixle error on the right hand side.
Is there a way to specify that the pen should be drawn outside the bar?
One pixel drawing issue with bar pen
Re: One pixel drawing issue with bar pen
Hello
I think a solution for you would be set the Pen color of your Series Gray as same color of Brush of your Series Gray, you can do something as next:
Can you tell us if previous code works as you want?
Thanks,
I think a solution for you would be set the Pen color of your Series Gray as same color of Brush of your Series Gray, you can do something as next:
Code: Select all
Steema.TeeChart.Silverlight.Styles.Bar bar1,bar2;
private void InitializeChart()
{
tChart1.Aspect.View3D = false;
bar1 = new Steema.TeeChart.Silverlight.Styles.Bar(tChart1.Chart);
bar2 = new Steema.TeeChart.Silverlight.Styles.Bar(tChart1.Chart);
bar1.FillSampleValues();
bar2.FillSampleValues();
bar1.Color = Colors.White;
bar2.Color = Colors.LightGray;
bar1.Pen.Color = Colors.Black;
bar2.Pen.Color = Colors.LightGray;
bar1.MultiBar = Steema.TeeChart.Silverlight.Styles.MultiBars.None;
}
Thanks,
Best Regards,
Sandra Pazos / Development & Support Steema Software Avinguda Montilivi 33, 17003 Girona, Catalonia Tel: 34 972 218 797 http://www.steema.com |
Instructions - How to post in this forum |
Re: One pixel drawing issue with bar pen
Thanks, I didn't think of that. I'd still argue that the right line is one pixel too far to the right, but at least now it is not noticable