Esempio n. 1
0
        public static BitmapSource GetImageForFile(string filename)
        {
            var bitmap = SimplePlayer.GetFrameFromFile(filename, 3000, false, VFSimplePlayerEngine.LAV);

            if (bitmap == null)
            {
                return(CreateBitmapSource(Colors.Black));
            }

            return(BitmapConv(bitmap));
        }