Ejemplo n.º 1
0
 /// <summary>
 /// Se produit quand une image est choisie
 /// </summary>
 /// <param name="sender"></param>
 /// <param name="e"></param>
 private void ImgComparison_ImageChosen(object sender, Controls.ImageComparisonControl.ImageChosenEventArgs e)
 {
     imgComparison.SetOriginalBitmap(_imageReader.Read(e.FileName), e.FileName);
 }
Ejemplo n.º 2
0
        /// <summary>
        /// Executed when Transformed image is about to be saved.
        /// Save Image.
        /// </summary>
        private void ImgComparison_ImageAboutToBeSaved(object sender, Controls.ImageComparisonControl.ImageChosenEventArgs e)
        {
            DefaultImageWriter writer = new DefaultImageWriter();

            writer.Write(e.FileName, imgComparison.TransformedImage.GetBitmap());
        }