| 12
 3
 4
 5
 6
 7
 8
 9
 10
 11
 12
 13
 14
 15
 16
 17
 18
 
 |     Bitmap imageMere = new Bitmap("mere.jpg");
    // Tu crée un bitmap pour contenir l'extraction de ton image mère, 
    // avec les tailles correspondantes
    Bitmap newImage = new Bitmap(100, 100);
 
    // Tu crée un rectangle correspondant à ton image extraite
    Rectangle destRect = new Rectangle(0, 0, 100, 100);
 
    // Tu crée un rectangle correspondant à la zone que tu veux 
    // extraire dans l'image mère
    Rectangle srcRect = new Rectangle(50, 50, 150, 150);
 
    // On travaille en pixel
     GraphicsUnit units = GraphicsUnit.Pixel;
 
    // Ensuite tu dessine dans l'image que tu à crée en haut
    Graphics newImageGraphics = Graphics.FromImage( newImage )
    newImageGraphics.DrawImage(imageMere , destRect, srcRect, units); |