public void Load(string path, bool isPPM) { if (isPPM) { PPM ppm = PPM.LoadImage(path); LoadFromPPM(ppm); } else { Bitmap bitMap = new Bitmap(path); LoadFromBitmap(bitMap); } }
public void Load(string path, bool isPPM) { if (isPPM) { PPM ppm = PPM.LoadImage(path); LoadFromPPM(ppm); } else { Bitmap bitMap = new Bitmap(path); LoadFromBitmap(bitMap); } }