Пример #1
0
        public static Tuple <bool, string> Interpolate(Image a, Image b, string destinationPath, double alpha)
        {
            MagickImage imageA, imageB;

            try
            {
                imageA = ImageOperations.ConvertToMagickImage(a as Bitmap);
                imageB = ImageOperations.ConvertToMagickImage(b as Bitmap);
            }
            catch (Exception ex)
            {
                return(new Tuple <bool, string>(false, ex.Message));
            }
            return(Interpolate(imageA, imageB, destinationPath, alpha));
        }