FastStepLineBitmapSeries display issue

Hi, I need to use a fast stepline series to display many thousands of points in multiple series in multiple charts. The series line must be clearly visible, it must be exactly 1 pixel wide without any antialiasing. However, the FastStepLineBitmapSeries looks bad. I've tried two methods:

1. Without setting the series thickness. See attached file "BAD FastStepLineBitmapSeries - no thickness.png." The blue lines have strange small appendages that stick out from the main lines. Also, the lines are antialiased.

2. Setting the series thickness to 1. See attached file "BAD FastStepLineBitmapSeries - thickness 1.png". Now the blue lines don't have those small appendages, but they are still antialised and not very visible. Horizontal lines have disappeared, as can be seen on the red series.

Please see the attached file "GOOD winforms chart - FastLine.png" for an example of how I want the series to look like. All the lines are single pixel wide and no antialiasing. This is from the Microsoft forms chart control using the fastline series (the control doesn't have a fast stepline series).

When you open the images, make sure that they are displayed in actual size in order to view them correctly.

How can I make the FastStepLineBitmapSeries display like the Microsoft winforms fastline series? 

Thank you.



Attachment: fast_stepline_issue_48b0c194.rar

3 Replies

MK Muneesh Kumar G Syncfusion Team March 17, 2018 08:05 AM UTC

Hi Tom, 
 
Sorry for the inconvenience caused.  
 
Query 1 : Now the blue lines don't have those small appendages, but they are still antialised and not very visible. 
 
We have analyzed your query, we would like to inform you that not only FastStepLineSeries, simple WPF Line element also rendered with antialiasing in window by default. But we can disable the antialiasing by setting BitmapScalingMode as NearestNeighbor for rendering image as follows.  
 
Code snippet [C#]: 
 
 
  Dim image As Image = GetPrivateField(chart, "fastRenderDevice") 
 
        If (Not (image) Is Nothing) Then 
            RenderOptions.SetBitmapScalingMode(image, BitmapScalingMode.NearestNeighbor) 
        End If 
 
 
 
We have modified your sample based on this, please find the sample from the following location.  
 
 
Query 2 : The blue lines have strange small appendages that stick out from the main lines. Also, the lines are antialiased. 
 
We are able to reproduce the issue “FastStepLineSeries small edges not rendered correctly while using huge data with StrokeThickness as 2” at our end and we have logged a defect report. The fix for the reported issue will be available in our 2018 Volume 1 SP1 release which is expected to be rolled out at the end of March, 2018. 
 
Query 3 : Horizontal lines have disappeared, as can be seen on the red series. 
 
We are able to reproduce the issue “FastStepLineSeries horizontal line not visible while setting StrokeThickness as 1” at our end and we have logged a defect report. The fix for the reported issue will be available in our 2018 Volume 1 SP1 release which is expected to be rolled out at the end of March, 2018. 
 
Please let us know if you have any queries.  
 
Thanks, 
Muneesh Kumar G. 
 
 
 
 
 



TO Tom March 17, 2018 09:25 AM UTC

Thank you Muneesh, your code works great to remove the antialiasing. 
Now I realize that not setting the line thickness defaults to 2. So what I would really like to see is line thickness 1 with the horizontal lines fixed, which you say will be corrected in the SP1. 
I greatly appreciate your help!


MK Muneesh Kumar G Syncfusion Team March 19, 2018 11:11 AM UTC

Hi Tom , 
 
Thanks for your update. 
 
We will let you know once our Vol 1 SP1 is released and appreciate your patience until then. 
 
Thanks, 
Muneesh Kumar G. 
 


Loader.
Up arrow icon