Example #1
0
        public static System.IO.FileInfo WriteAVI(this AttachmentInfo ainfo, IEnumerable <MemoryBitmap> frames, float frameRate = 25)
        {
            void _saveVideo(string filePath)
            {
                MJpegAviFrameWriter.SaveToAVI(filePath, frames, (decimal)frameRate, new GDICodec(50));
            }

            return(ainfo.WriteObject(_saveVideo));
        }
Example #2
0
 public static System.IO.FileInfo WriteVideo(this AttachmentInfo ainfo, IEnumerable <PointerBitmap> frames)
 {
     return(ainfo.WriteObject(finfo => FFmpegAutoGen.EncodeFrames(finfo, frames)));
 }
Example #3
0
 public static System.IO.FileInfo WriteImage(this AttachmentInfo ainfo, Image image)
 {
     return(ainfo.WriteObject(f => image.Save(f)));
 }