Esempio n. 1
0
        static void Main(string[] args)
        {
            if (args.Length == 0)
            {
                Console.WriteLine("File apth for iamge is not specified");
            }

            List <WriteableBitmap> images = new List <WriteableBitmap>();

            for (int k = 0; k < args.Length; k++)
            {
                string         filePath  = args[k];
                ExtraImageInfo imageInfo = CreateImageFromFile(filePath);
                images.Add(imageInfo.Image);
            }

            //Write images to memory
            MemoryWriter.WriteCollection <WriteableBitmap>(images, new WriteableBitmapSerialization());
        }