HatchStyle.ZigZag : HatchBrush : Drawing 2D C# Examples


C# Examples » Drawing 2D » HatchBrush »

 

HatchStyle.ZigZag









    
using  System;
using  System.Drawing;
using  System.Collections;
using  System.ComponentModel;
using  System.Windows.Forms;
using  System.Data;
using  System.Drawing.Drawing2D;

public  class  Form1  :  System.Windows.Forms.Form  {
        [STAThread]
        static  void  Main()  {
                Application.Run(new  Form1());
        }

        protected  override  void  OnPaint(PaintEventArgs  e)  {
                Graphics  g  =  e.Graphics;
                HatchBrush  hb4  =  new  HatchBrush(HatchStyle.ZigZag,  Color.AntiqueWhite,  Color.Black);
                g.FillEllipse(hb4,  30,  180,  Width  -  50,  30);

        }
}
    
   
  
   




HTML code for linking to this page:

Follow Navioo On Twitter

C# Examples

 Navioo Drawing 2D
» HatchBrush