示例#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);
 }
示例#2
0
        public static string createVideo(this API_AForge_Video aforgeVideo, List <Bitmap> bitmaps)
        {
//			show.info(bitmaps);
            aforgeVideo.newVideo();
            aforgeVideo.add_Bitmaps(bitmaps);
            aforgeVideo.saveAndClose();
            "Created Video: {0}".info(aforgeVideo.PathToAviVideo);
            return(aforgeVideo.PathToAviVideo);
        }
示例#3
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);
        }