private static void ReadImageEnhance(string argument, ICanvasViewer viewer, IRasterDrawing drawing) { IRgbProcessorStack stack = drawing.RgbProcessorStack; stack.Clear(); stack.ReadXmlElement(argument); viewer.Canvas.Refresh(Core.DrawEngine.enumRefreshType.RasterLayer); }
private void btnOpenImage_Click(object sender, EventArgs e) { using (OpenFileDialog dlg = new OpenFileDialog()) { dlg.Filter = "图片文件(*.JPG,*.BMP)|*.JPG;*.BMP"; if (dlg.ShowDialog() == System.Windows.Forms.DialogResult.OK) { _originalBitmap = (Bitmap)Bitmap.FromFile(dlg.FileName); _processorStack.Clear(); Invalidate(); } } }