I want to draw some lines with a DrawingTool.
Then, selcting this line, I want to change a parameter in this line properties.
Depending on this parameter, I would like to change the colour, width, etc
Example:
This is how I usually draw a line within OnRender:
Point pto1= new Point(fx, fy);
SharpDX.Vector2 vector1=pto1.ToVector2();
Point pto2= new Point(fx2, fy2);
SharpDX.Vector2 vector2=pto2.ToVector2();
RenderTarget.DrawLine(vector1, vector2, outlineStroke.BrushDX, espesorStroke.Width, outlineStroke.StrokeStyle);
I would like to have something like:
RenderTarget.DrawLine(vector1, vector2, colour-variable, width-variable, outlineStroke.StrokeStyle);
without having to define so many "strokes" as combinations I need.
Thanks
Comment