コード例 #1
0
 // The PrintPage event is raised for each page to be printed.
 private void pd_PrintPage(object sender, PrintPageEventArgs ev)
 {
     // The windows.forms PlotSurface2D control can also be
     // rendered to other Graphics surfaces. Here we output to a
     // printer.
     plotSurface.Draw(ev.Graphics, ev.MarginBounds);
     ev.HasMorePages = false;
 }