Clear() public method

Fills the entire drawing surface with the specified color. The functions works only if the current transformation is identity, i.e. the function should be called only immediately after the XGraphics object was created.
public Clear ( XColor color ) : void
color XColor
return void
コード例 #1
0
 public virtual void RenderPage(XGraphics gfx)
 {
   //Debug.WriteLine("RenderPage");
   gfx.Clear(this.properties.General.BackColor.Color);
   //DrawGridlines(gfx);
   gfx.SmoothingMode = XSmoothingMode.AntiAlias;
 }
コード例 #2
0
ファイル: PDFExporter.cs プロジェクト: schwarzertod/NETGen
private static void Draw(XGraphics g, Network n, LayoutProvider layout, NetworkColorizer colorizer)
{
    lock (n)
            {
                if (g == null)
                    return;
                g.SmoothingMode = PdfSharp.Drawing.XSmoothingMode.HighQuality;
                g.Clear(Color.White);
                foreach (Edge e in n.Edges)
                        DrawEdge(g, e, layout, colorizer);
                foreach (Vertex v in n.Vertices)
                        DrawVertex(g, v, layout, colorizer);
            }
}
コード例 #3
0
ファイル: PDFExporter.cs プロジェクト: mszanetti/NETGen
 private static void Draw(XGraphics g, Network n, PresentationSettings presentationSettings, ILayoutProvider layout)
 {
     lock (n)
     {
         if (g == null)
             return;
         g.SmoothingMode = PdfSharp.Drawing.XSmoothingMode.HighQuality;
         g.Clear(Color.White);
         foreach (Edge e in n.Edges)
                 DrawEdge(g, e, presentationSettings, layout);
         foreach (Vertex v in n.Vertices)
                 DrawVertex(g, v, presentationSettings, layout);
     }
 }
コード例 #4
0
 private static void Draw(XGraphics g, IRenderableNet n, LayoutProvider layout, NetworkColorizer colorizer)
 {
     lock (n)
     {
         if (g == null)
             return;
         g.SmoothingMode = PdfSharp.Drawing.XSmoothingMode.HighQuality;
         g.Clear(Color.White);
         foreach (var e in n.GetEdgeArray())
             if (string.Compare(e.Item1, e.Item2) >= 0)
                 DrawEdge(g, e, layout, colorizer);
         foreach (string v in n.GetVertexArray())
             DrawVertex(g, v, layout, colorizer);
     }
 }