示例#1
0
        /// <summary>
        /// 処理後のイメージ情報リストに変換します。
        /// </summary>
        /// <param name="leftOrTop">左側又は上側のBatchTargetImage。</param>
        /// <param name="rightOrBottom">右側又は下側のBatchTargetImage。</param>
        /// <param name="finisherEnabled">保存処理が有効かを表すbool。</param>
        /// <returns>処理後のBatchTargetImageリスト</returns>
        private List <BatchTargetImage> toBatchTargetImageList(BatchTargetImage leftOrTop, BatchTargetImage rightOrBottom, bool finisherEnabled)
        {
            DefaultImageWriter.SaveImage(leftOrTop, this.Settings, finisherEnabled);
            DefaultImageWriter.SaveImage(rightOrBottom, this.Settings, finisherEnabled);

            return(this.Settings.ToBatchTargetImageList(leftOrTop, rightOrBottom));
        }
示例#2
0
        /// <summary>
        /// 非選択ファイルを新規ファイルとして保存する。
        /// </summary>
        /// <param name="target">元イメージのBatchTargetImage。</param>
        /// <returns>処理後の非選択ファイルを表すBatchTargetImage。</returns>
        private BatchTargetImage createNewFileFromUnselectedFile(BatchTargetImage target)
        {
            var newTarget = this.toUnselectedTarge(target);

            newTarget.TargetImage = target.GetTargetImage();
            DefaultImageWriter.SaveImage(newTarget, this.Settings, this.SelectedFilesFinisherEnabled);

            return(newTarget);
        }
        /// <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());
        }