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; } } } }
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; } } } }