Beispiel #1
0
        private void mergeImages(string output)
        {
            string img1 = imageChooser1.getFile();
            string img2 = imageChooser2.getFile();

            if (img1 != "" && img2 != "")
            {
                Color lightColor = colorAChooser.getColor();
                Color darkColor  = colorCChooser.getColor();
                ImageTransformer.mergeImages(img1, img2, output, lightColor, darkColor, invert1, invertBg1, invert2, invertBg2);
            }
        }
Beispiel #2
0
        private void previewImg2()
        {
            string output = getTempFile();
            string img2   = imageChooser2.getFile();

            if (img2 != "")
            {
                string img1       = imageChooser1.getFile();
                Color  lightColor = colorAChooser.getColor();
                Color  darkColor  = colorCChooser.getColor();
                lightColor = ImageTransformer.weightedAverage(lightColor, 127, darkColor, 127);
                ImageTransformer.previewTransform(img2, img1, output, lightColor, darkColor, invert2, invertBg2);
                Image2.Source = new BitmapImage(new Uri(output));
            }
        }