Beispiel #1
0
        public IAsyncInfo GenerateGif(StorageFile file, int delay, bool repeat, List <BitmapImage> sourceBitmaps)
        {
            List <byte[]> source = new List <byte[]>();

            foreach (BitmapImage bi in sourceBitmaps)
            {
                source.Add(ImageController.convertToBytes(bi));
            }

            return(GenerateGif(file, delay, repeat, source));
        }
Beispiel #2
0
 static public String ImageToBase64(BitmapImage image)
 {
     byte[] imagedata = ImageController.convertToBytes(image);
     return(ImageController.ImageToBase64(imagedata));
 }