예제 #1
0
        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);
        }
예제 #2
0
파일: Form1.cs 프로젝트: configare/hispeed
 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();
         }
     }
 }