Exemplo n.º 1
0
        internal static void UnPillarBoxTest()
        {
            Console.WriteLine("UnPillarbox Test");
            // Need a sample file to work with:
            string fn    = @"c:\pbtest.jpg";
            string outfn = @"c:\unpillarboxed.jpg";

            if (!File.Exists(fn))
            {
                Console.WriteLine(" ! Failed: Input file not found: " + fn);
                return;
            }
            try {
                Bitmap bm      = (Bitmap)Bitmap.FromFile(fn);
                Bitmap fixedbm = PresentationFromVideoMgr.TestUnPillarBox(bm);
                fixedbm.Save(outfn);
            }
            catch (Exception ex) {
                Console.WriteLine(" ! Failed: " + ex.ToString());
                return;
            }
            Console.WriteLine(" Look at " + outfn + " to verify correct result.");
        }
Exemplo n.º 2
0
        public static Bitmap TestUnPillarBox(Bitmap bm)
        {
            PresentationFromVideoMgr instance = new PresentationFromVideoMgr(null, 0, 0, 0, null, 0, null);

            return(instance.UnPillerBox(bm));
        }