Print frames in Canvas html 5.0
I could not find the code for it, is it possible to define a certain frame or an array of frames in Animate CC Canvas html 5.0? If so, what is the code?
Many thanks.
I could not find the code for it, is it possible to define a certain frame or an array of frames in Animate CC Canvas html 5.0? If so, what is the code?
Many thanks.
Many thanks. I will use it in my upcoming first Canvas/JS project. By the way, just to be sure, the code you have suggested can be used as a CreateJS action inside an animate CC frame?
Yes, both chunks of code should work from the timeline. I just this as a test:
this.stop();
print_voucher();
function print_voucher() {
var win = window.open();
win.document.write("<br><img src='" + canvas.toDataURL() + "'/>");
win.print();
//win.location.reload();
}
The reload line was causing the new window to try to print again. The window that it created and set the source of literally had a png in it that I could drag to my desktop.
Already have an account? Login
Enter your E-mail address. We'll send you an e-mail with instructions to reset your password.