1 2 3 4 5 6 7 8 9 10 11 12 13 14 15 16 17 18 19 20 21 22 23 24 25 26
   |  
void Form1::fondIP(System::Object ^sender, System::Windows::Forms::PaintEventArgs ^e)
{
 
	//on crée une surface de dessin que l'on associe a panel zoneIP
	Graphics^ gFond = e->Graphics;
	//on donne une couleur noir au fond d'écran
	zoneIP->BackColor = Color::Black;
	//on définit un crayon et sa couleur
	pvCouleur = Color::White;
	Pen^ plume = gcnew Pen(pvCouleur, 0.5);
	//on dessine les marqueurs
	Point p1(pvPointX, pvPointY);
	Point p2(pvPointX+600, pvPointY+600);
	Point p3(pvPointX+300, pvPointY);
	Point p4(pvPointX+300, pvPointY+600);
	Point p5(pvPointX, pvPointY+300);
	Point p6(pvPointX+600, pvPointY+300);
	Point p7(pvPointX+600, pvPointY);
	Point p8(pvPointX, pvPointY+600);
 
 
 
 
	MarqueurDistance(gFond, plume, pvPointX, pvPointY, 600, 600, marqueur);
} | 
Partager