1 2 3 4 5 6 7 8 9 10 11 12 13 14 15 16 17
| private: System::Void distributionAléatoitreToolStripMenuItem_Click(System::Object^ sender, System::EventArgs^ e)
{
int donne[10],i;
for (i = 0; i < 52; i++)
donne[i]= i+1;
Melangetableau(donne,10);
this->pictureBox1->Refresh();
//Affiche la carte "Dos".
Image^ Image = Image::FromFile("./Cartes/Dos.jpg" );
Graphics^ g = this->pictureBox1->CreateGraphics();
g->DrawImage(Image,457,20,100,150);
g->DrawImage(Image,457,597,100,150);
Image->RotateFlip( RotateFlipType::Rotate90FlipNone );
g->DrawImage(Image,20,333,150,100);
g->DrawImage(Image,847,333,150,100);
delete g;
} |
Partager