Exemple #1
0
 public void EditImage(ImageEditEventHandler evt)
 {
     for (int y = 0; y < Height; y++)
     {
         for (int x = 0; x < Width; x++)
         {
             if (evt != null)
             {
                 ImageEditEventArgs args = new ImageEditEventArgs(x, y, this[x, y]);
                 evt(this, args);
                 this[x, y] = args.DestColor;
             }
         }
     }
 }
Exemple #2
0
 public void EditImage(ImageEditEventHandler evt)
 {
     for (int y = 0; y < Height; y++)
     {
         for (int x = 0; x < Width; x++)
         {
             if (evt != null)
             {
                 ImageEditEventArgs args = new ImageEditEventArgs(x, y, this[x,y]);
                 evt(this, args);
                 this[x, y] = args.DestColor;
             }
         }
     }
 }