c# - List of points should result in a polyline with different strokes -


I have a list of points. They should be drawn as a line in which different colors for each line segment Are likely to be In addition, the shape should fit within a given area (grow up if the area becomes bigger, if larger). I have already tried to use a grid with several overlay polyline, one for enlarging / shrinking each color, I set the stretch property of each polyline to uniform and horizontal and vertical alignment for the center. But it works only when each polyline is of the same size.

  & lt; Grid & gt; & Lt ;! - Positive example - & gt; & Lt; Border borderchurch = "2" borderbrush = "rad" margin = "120,50,120,200" padding = "3" & gt; & Lt; Grid & gt; & Lt; Polyline horizontal alignment = "center" vertical element = "center" stroke = "black" strokectination = "2" stretch = "uniform" number = "0,0 10,0 10, -10, -10" /> & Lt; Polyline horizontal alignment = "center" vertical alignment = "center" stroke = "yellowgrin" strokectomy = "2" stretch = "uniform" number = "0,0 10,0 10, -10" /> & Lt; / Grid & gt; & Lt; / Border & gt; & Lt ;! - Negative example - & gt; & Lt; Border BorderTouchs = "2" Borderbrush = "Red" margin = "120,200,120,50" padding = "3" & gt; & Lt; Grid & gt; & Lt; Polyline Horizontal Alignment = "Center" Vertical Element = "Center" Stroke = "Black" Strokectane = "2" Stretch = "Uniform" Issue = "0,0 10,0 10, -10 -2, -10" /> & Lt; Polyline horizontal alignment = "center" vertical alignment = "center" stroke = "yellowgrin" strokectomy = "2" stretch = "uniform" number = "0,0 10,0 10, -10" /> & Lt; / Grid & gt; & Lt; / Border & gt; & Lt; / Grid & gt;  

code result in

is what I am missing in Is there a better way to do this? Is there a substitute for polyline, where can I specify different colors for each segment?


Comments

Popular posts from this blog

java - Can't add JTree to JPanel of a JInternalFrame -

javascript - data.match(var) not working it seems -

javascript - How can I pause a jQuery .each() loop, while waiting for user input? -