/// <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; }
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; }
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; }
public DaGiac2D(List <Point> listPoint, Color mau, NetVe netve) { this.ListPoint = listPoint; this.Mau = mau; this.NetVe = netve; }
/// <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; }