private void LoadPicture(Bitmap bmp) { originalPhoto = Convertors.Bitmap2Photo(bmp); pictureBoxOriginal.Image = bmp; pictureBoxResult.Image = null; }
public abstract Photo Process(Photo original, IParameters parameters);
private void SavePicture(Photo photo, string filename) { var bmp = Convertors.Photo2Bitmap(photo); bmp.Save(filename, System.Drawing.Imaging.ImageFormat.Jpeg); }
public Photo Process(Photo original, double[] values) { parameters.SetValues(values); return(Process(original, parameters)); }