El_gringo  | Alors, pour l'instant : Code :
 - Toolkit kit = Toolkit.getDefaultToolkit ();
 - int w = 100;
 - int h = 25;
 - int pix[] = new int[w * h];
 - int index = 0;
 - for (int y = 0; y < h; y++) {
 -     int red = (y * 255) / (h - 1);
 -     for (int x = 0; x < w; x++) {
 - 	int blue = (x * 255) / (w - 1);
 - 	pix[index++] = (255 << 24) | (red << 16) | blue;
 -     }
 - }
 - Image img = kit.createImage(new MemoryImageSource(w, h, pix, 0, w));
 - Graphics2D g2 = (Graphics2D)img.GetGraphics ();
 - g2.drawString ("Et voili", 0, 0);
 
  |  
 
   Il doit y a voir à fignoler, ms surtout, j'vois pas encore comment écrire cette nouvelle image générée dans le fichier...    |