I'm wanting to use the appearance of a Plot[], to use as the basis when formatting a RenderTarget.DrawLine() line.
Something like this:
RenderTarget.DrawLine(p0.ToVector2(), p1.ToVector2(), Plots[0].BrushDX, Plots[0].Width, Plots[0].StrokeStyle);
Is there a way around this? Can I get a DashStyleHelper object from the Plot, create a StrokeStyle object, then pass that to DrawLine()?
Like this (but actually pulling information from Plot[])
StrokeStyle strokeStyle = new Stroke(Brushes.Gray, DashStyleHelper.Dot, 5f).StrokeStyle;
RenderTarget.DrawLine(p0.ToVector2(), p1.ToVector2(), Plots[0].BrushDX, Plots[0].Width, strokeStyle);
Any help is greatly appreciated!
Comment