Esempio n. 1
0
 /// <summary>
 /// Init Duong Thang
 /// </summary>
 /// <param name="a">Point 1st</param>
 /// <param name="b">Point 2nd</param>
 /// <param name="color">Màu vẽ</param>
 /// <param name="netve">Nét Vẽ</param>
 public DoanThang(Point a, Point b, Color color, NetVe netve)
 {
     this.firstPoint  = a;
     this.secondPoint = b;
     this.Mau         = color;
     this.NetVe       = netve;
     this.ThuatToanVe = AlgrothmDraw.Bresenham;
 }
Esempio n. 2
0
 public HinhTron(Point tam, int bankinh, Color color, NetVe netve)
 {
     this.pTam     = tam;
     this.iBanKinh = bankinh;
     this.Mau      = color;
     this.NetVe    = netve;
     cachVe        = CachVe.Put8pixel;
 }
Esempio n. 3
0
 public HinhEsclipse(int ra, int rb, Point tam, Color color, NetVe netve)
 {
     this.ra    = ra;
     this.rb    = rb;
     this.pTam  = tam;
     this.Mau   = color;
     this.NetVe = netve;
 }
Esempio n. 4
0
 public DaGiac2D(List <Point> listPoint, Color mau, NetVe netve)
 {
     this.ListPoint = listPoint;
     this.Mau       = mau;
     this.NetVe     = netve;
 }
Esempio n. 5
0
 /// <summary>
 /// Khởi tạo Màu và nét vẽ cho Đa Giác, List Point được set sau!
 /// </summary>
 /// <param name="mau"></param>
 /// <param name="netve"></param>
 public DaGiac2D(Color mau, NetVe netve)
 {
     this.Mau   = mau;
     this.NetVe = netve;
 }