Bonjour,
En supposant que j'ai la méthode ci-après :
Comment puis-je spécifier à C# que le paramètre x soit facultatif ?Code:
1
2
3
4
5
6
7
8
9
10
11
12
13
14 public static Size redimension(Bitmap img, int max_w, int max_h, int x) { iwidth = img.Width; iheight = img.Height; if (!(img.Width <= max_w)) { iheight = (max_w * img.Height) / img.Width; iwidth = max_w; } //Traitement...... }
Merci d'avance