At me a problem I cannot correctly create a figure of "the power transformer" at me only that image that at the left in drawing turns out, but I need to receive same as on the right.
Here which I register a code:
PointF v1_start1 = new PointF (5, 20);
PointF v1_start2 = new PointF (5, 23);
PointF v1_end1 = new PointF (5, 40);
PointF v1_end2 = new PointF (20, 23);
PointF v2_start1 = new PointF (0, 20);
PointF v2_start2 = new PointF (0, 23);
PointF v2_end1 = new PointF (0, 40);
PointF v2_end2 = new PointF (20, 23);
PointF v3_start1 = new PointF (0, 40);
PointF v3_start2 = new PointF (0, 43);
PointF v3_end1 = new PointF (0, 60);
PointF v3_end2 = new PointF (20, 43);
BezierCurve curvLine1 = new BezierCurve (v1_start1, v1_start2, v1_end1, v1_end2);
BezierCurve curvLine2 = new BezierCurve (v2_start1, v2_start2, v2_end1, v2_end2);
BezierCurve curvLine3 = new BezierCurve (v3_start1, v3_start2, v3_end1, v3_end2);
curvLine1.LineStyle. LineWidth = 2;
curvLine2.LineStyle. LineWidth = 2;
curvLine3.LineStyle. LineWidth = 2;
this. AppendChild (curvLine1);
this. AppendChild (curvLine2);
this. AppendChild (curvLine3);
PointF h1_startLine = new PointF (-5, 0);
PointF h1_endLine = new PointF (0, 0);
PointF h2_startLine = new PointF (0,60);
PointF h2_endLine = new PointF (5, 60);
Line line1 = new Line (h1_startLine, h1_endLine);
Line line2 = new Line (h2_startLine, h2_endLine);
line1.LineStyle. LineWidth = 1;
line2.LineStyle. LineWidth = 1;
this. AppendChild (line1);
this. AppendChild (line2);
Please help me. In advance thanks.
power transformer_a3b180d5.zip