Measurement Studio for .NET Languages

cancel
Showing results for 
Search instead for 
Did you mean: 

Trying to modify StrokeThickness and StrokeDashArray in Raster LinePlotRenderer (WPF)

Solved!
Go to solution

The StrokeThickness and StrokeDashArray properties of the LinePlotRenderer don't seem to have any effect when the parent graph is using the Raster RenderMode. Am I missing something or is this not currently supported?

 

They work correctly in Vector mode, but we have an unsolved performance issue there...

 

Thanks,

-David

0 Kudos
Message 1 of 6
(6,922 Views)

Everything seems to be functioning as intended. That is the main difference between Raster and Vector rendering. Vector rendering will allow you to scale the size but will take more cpu usage, while raster will not allow you to scale the size. More information can be found about this in the Vector Graphics section on this Microsoft Support Page. http://msdn.microsoft.com/en-us/library/ms748373(v=vs.110).aspx 

Jesse S.
Applications Engineer
National Instruments
0 Kudos
Message 2 of 6
(6,890 Views)

Are you saying it is as designed that the Raster LinePlotRenderer for the WPF Graph does not support changing the line thickness or support drawing dashed lines? We used to use the WinForms ScatterGraph; it exposed LineWidth and LineStyle properties to enable this.

 

I've attached a zip file with a WinForms ScatterGraph next to a WPF Graph (Raster / LinePlotRenderer). Is there not any way to make WPF Raster lines dashed and thicker than 1 pixel?

 

ScatterGraph showing LineWidth=5 and LineStyle=Dashed, WPF Raster Won't do same

0 Kudos
Message 3 of 6
(6,884 Views)
Solution
Accepted by topic author ellisda

Vector and raster represent a tradeoff between richer functionality and better performance. Improving the performance and feature support of raster rendering is one of the main focus areas for the next Measurement Studio release, but the current release only supports 1-pixel thick solid lines and rectangular points in raster mode.

~ Paul H
0 Kudos
Message 4 of 6
(6,879 Views)

Thanks Paul. You're posting here may get us up and running in Raster mode. Thank you for clarifying that it didn't make it into 2013 edition of the raster LinePlotRenderer (anxiously awaiting March 2014?)

0 Kudos
Message 5 of 6
(6,863 Views)

Just wanted to let you know that Measurement Studio 2019 added support for StrokeThickness and StrokeDashArray customization for graphs that use the Hardware RenderMode.

~ Paul H
0 Kudos
Message 6 of 6
(2,444 Views)