Пример #1
0
        private void PunchPdfTest(string basename, PunchPrintSettings punchPrintSettings)
        {
            // Get the pages of the printing.
            PunchPrinting punchPrinter = new PunchPrinting(controller.GetEventDB(), controller, punchPrintSettings);
            string        pdfFileName  = TestUtil.GetTestFile(basename + ".pdf");

            punchPrinter.PrintToPdf(pdfFileName, false);
            CheckPdfDump(pdfFileName, TestUtil.GetTestFile(basename + "_baseline_page%d.png"));
        }
Пример #2
0
        private void PunchPrintingTest(string basename, PunchPrintSettings punchPrintSettings)
        {
            // Get the pages of the printing.
            PunchPrinting punchPrinter = new PunchPrinting(controller.GetEventDB(), controller, punchPrintSettings);

            Bitmap[] bitmaps = punchPrinter.PrintBitmaps();

            // Check all the pages against the baseline.
            for (int page = 0; page < bitmaps.Length; ++page)
            {
                Bitmap bm           = bitmaps[page];
                string baseFileName = basename + "_page" + (page + 1).ToString();
                TestUtil.CheckBitmapsBase(bm, baseFileName);
            }
        }
        private void PunchPrintingTest(string basename, PunchPrintSettings punchPrintSettings)
        {
            // Get the pages of the printing.
            PunchPrinting punchPrinter = new PunchPrinting(controller.GetEventDB(), controller, punchPrintSettings);
            Bitmap[] bitmaps = punchPrinter.PrintBitmaps();

            // Check all the pages against the baseline.
            for (int page = 0; page < bitmaps.Length; ++page) {
                Bitmap bm = bitmaps[page];
                string baseFileName = basename + "_page" + (page + 1).ToString();
                TestUtil.CheckBitmapsBase(bm, baseFileName);
            }
        }