Guest User

Untitled

a guest
Jul 30th, 2013
314
0
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
  1. Dim zed = New ZedGraph.ZedGraphControl() With { _
  2.     .Dock = System.Windows.Forms.DockStyle.Fill _
  3. }
  4.  
  5. Dim poly = New ZedGraph.PolyObj() With { _
  6.     .Points = New () {New ZedGraph.PointD(0, 0), New ZedGraph.PointD(0.5, 1), New ZedGraph.PointD(1, 0.5), New ZedGraph.PointD(0, 0)}, _
  7.     .Fill = New ZedGraph.Fill(Color.Blue), _
  8.     .ZOrder = ZedGraph.ZOrder.E_BehindCurves _
  9. }
  10.  
  11. Dim poly1 = New ZedGraph.PolyObj() With { _
  12.     .Points = New () {New ZedGraph.PointD(1, 0), New ZedGraph.PointD(0.25, 1), New ZedGraph.PointD(0.5, 0), New ZedGraph.PointD(1, 0)}, _
  13.     .Fill = New ZedGraph.Fill(Color.Red), _
  14.     .ZOrder = ZedGraph.ZOrder.E_BehindCurves _
  15. }
  16.  
  17. zed.GraphPane.AddCurve("Line", New () {0.0, 1.0}, New () {0.0, 1.0}, Color.Green)
  18. zed.GraphPane.GraphObjList.Add(poly1)
  19. zed.GraphPane.GraphObjList.Add(poly)
Advertisement
Add Comment
Please, Sign In to add comment