Exemplo n.º 1
0
        protected void UpdateValues()
        {
            try
            {
                RasterImage  tempImage;
                CloneCommand clone = new CloneCommand();

                clone.Run(_originalImage);

                tempImage = clone.DestinationImage;

                if (DoEffect(ref tempImage))
                {
                    if (_afterImage != null)
                    {
                        _afterImage.Dispose();

                        _afterImage = null;
                    }

                    _afterImage = tempImage;

                    _afterViewer.Image = _afterImage;

                    _afterViewer.OffsetImage(_beforeViewer.Offset);

                    _afterViewer.Invalidate();
                }
            }
            catch (Exception ex)
            {
                throw ex;
            }
        }
Exemplo n.º 2
0
 private void _cmbREFImage_SelectedIndexChanged(object sender, EventArgs e)
 {
     _REFImage        = _images[_cmbREFImage.SelectedIndex];
     _REFViewer.Image = _REFImage;
     _REFViewer.OffsetImage(_DSTViewer.Offset);
     _REFViewer.Invalidate();
     UpdateValues();
 }