private void Button_print_Click(object sender, RoutedEventArgs e)
        {
            VisibilityManagement(5);

            Thread printThread = new Thread(() => FacesPrinter.Print(PrinterCallback, _photos, _nbPrints, _printer));

            printThread.Start();
        }
Exemple #2
0
        private void Button_print_Click(object sender, RoutedEventArgs e)
        {
            // Print image
            Tuple <Bitmap, InterfaceProj.Json> imageAnim = _facesAnim.GetPrintImage();
            var filePath = _facesAnim.Save(imageAnim);

            FacesPrinter.PrintSticker(PrinterCallback, new List <PhotoPath> {
                new PhotoPath(filePath + @".jpg")
            }, imageAnim.Item2.angle);
        }