Ejemplo n.º 1
0
        public MainWindow()
        {
            InitializeComponent();

            this._ImageData = new PsImage.ImageData();
            this._ProcImage = new PsImage.ImageData();
        }
Ejemplo n.º 2
0
        private void UpdateViewImage(PsImage.IImageData ImageData)
        {
            if (this._ViewImage != null)
            {
                this._ViewImage.Dispose();
                this._ViewImage = null;
            }

            if (ImageData != null)
            {
                PsImage.ImageLibrary.Convert(ref this._ViewImage, ImageData);
            }
        }
Ejemplo n.º 3
0
        private void OnFileSave(object sender, EventArgs e)
        {
            System.Windows.Forms.SaveFileDialog dlg = new System.Windows.Forms.SaveFileDialog();

            dlg.Filter = "All files (*.*)|*.*";

            if (dlg.ShowDialog() == System.Windows.Forms.DialogResult.OK)
            {
                PsImage.IImageData ImageData = this._ProcImage.IsCreated ? this._ProcImage : this._ImageData;

                PsImage.ImageWriter.WriteImage(dlg.FileName, ImageData);
            }

            dlg.Dispose();
        }