Exemplo n.º 1
0
 public static string createVideo(this API_AForge_Video aforgeVideo, List <string> pathToImages)
 {
     "Creating Video with {0} images".debug(pathToImages.size());
     aforgeVideo.newVideo();
     aforgeVideo.add_Images(pathToImages);
     aforgeVideo.saveAndClose();
     "Created Video: {0}".info(aforgeVideo.PathToAviVideo);
     return(aforgeVideo.PathToAviVideo);
 }
Exemplo n.º 2
0
        public static string createAndPlay(this VideoSourcePlayer videoPlayer, List <string> pathToImages)
        {
            "in  VideoSourcePlayer createAndPlay, creating a video from {0} WPF images".info(pathToImages.size());
            var aforgeVideo = new API_AForge_Video();

            aforgeVideo.add_Images(pathToImages);
            aforgeVideo.saveAndClose();
            videoPlayer.play(aforgeVideo.PathToAviVideo);
            return(aforgeVideo.PathToAviVideo);
        }